Tip 1 : Deep project knowledge
Tip 2 : Try different topics questions on code studio
Tip 3 : Be consistent with the preparation
Tip 1 : Keep things you are confident about
Tip 2 : Keep it short



If the matrix is
0 2 4 1
4 8 3 7
2 3 6 2
9 7 8 3
1 5 9 4
Then answer is 47. As, Alice will collect coins 0+8+3+9+1 = 21 coins. Bob will collect coins 1+7+6+8+4 = 26 coins. Total coins is 21+26 = 47 coins.
Solved through recursion first.
Applied DP next.



Input: 'list' = [1, 2, 3, 4], 'k' = 2
Output: 2 1 4 3
Explanation:
We have to reverse the given list 'k' at a time, which is 2 in this case. So we reverse the first 2 elements then the next 2 elements, giving us 2->1->4->3.
All the node values will be distinct.



What do you mean by Acid Properties?
What is normalisation?
What is Data abstraction?
What is inheritance? Which feature of OOPS does it implement?

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?