Tip 1: Practice more problem-solving questions.
Tip 2: Understand the concepts in depth.
Tip 3: Try working on one or two hands-on projects to gain more experience in that stack.
Tip 1: Include some projects on your resume.
Tip 2: Avoid putting false information on your resume.


The width of each bar is the same and is equal to 1.
Input: ‘n’ = 6, ‘arr’ = [3, 0, 0, 2, 0, 4].
Output: 10
Explanation: Refer to the image for better comprehension:

You don't need to print anything. It has already been taken care of. Just implement the given function.
1. I used every possible combination, O(N^2).
2. I then optimised it using 2 pointers, O(N).



I applied Depth's first search to explore all the components. The interviewer was happy with that approach.



You must sell the stock before you buy it again.



Input: str1 = “ab” , str2 = “aoba”
Output: Yes
Explanation: Permutations of first-string str1 i.e. “ab” are [“ab”, “ba”].
The substrings of str2, i.e. “aoba” are [“a”, “o”, “b”, “a”, “ao”, “ob”, “ba”, “aob”, “oba”, “aoba”].
The string “ba” is present in the list of substrings of string str2.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?