Tip 1 : Practice interview questions from internet atleast 250 from all topics like Dp, Array, Stack, Graph, Tree
Tip 2 : Go through the CS fundamentals like DBMS, Operating System, Software Engineering
Tip 3 : Go through mock interviews
Tip 1 : Mention good projects and have a grasp of it.
Tip 2 : Mention the coding profiles. It really helps you.



[1, 2, 3, 4] is a strictly increasing array, while [2, 1, 4, 3] is not.
It is a dp question in which i have to find the length of longest increasing subsequence. What I have done is created an array of length n and started to travesrse from starting point and if at particular point any value is grater than this value increase its value by one from that position and store max of both current value and now value to the current location.
Time complexity O(N^2)
Space Complexity O(N)


Subsequences of string "abc" are: ""(empty string), a, b, c, ab, bc, ac, abc.
What I have done is created an array of size n and started traverse from starting point and for each current value looks its value if its value is greater than the started value than change the current value int created array by max of two that current value,started value plus one. Ine the last find max value from the array.
Time complexity O(N^2)
Space complexity O(N)




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?