All Questions
4 questions
1
vote
2
answers
1k
views
Leetcode 55. Jump Game solution
I was working on Jump Game problem on leetcode
Question
You are given an integer array nums. You are initially positioned at the array's first index, and each element in the array represents your ...
1
vote
1
answer
1k
views
Re-order table columns in HTML dynamically with Javascript
I've a table in HTML looks like this:
Subjects
n1
n2
n3
subject1
10
0
0
subject2
0
5
20
...
1
vote
2
answers
343
views
Leetcode 377. Combination Sum IV Javascript Memoization attempt
Problem Statement
...
5
votes
1
answer
3k
views
Find the maximum profit if given an array of daily stock prices and allowed to buy and sell twice
I am wondering about the correctness of this method:
We are given a function / algorithm findMaxProfit() that can find the maximum profit when given an array of ...