Tip 1 : Prepare good for DS & Algo as most companies have a separate round for it.
Tip 2 : Don't lie over your resume
Tip 3 : Instead of doing bulk on weekends, prefer doing little everyday.Be consistent in coding.
Tip 1 : Only mention skills that you are good at.
Tip 2 : Have some projects on resume
Tip 3 : Try to add all your achievements in a crisp
I was asked 2 DSA questions only.It was purely based on coding.Interviewer asked me approach first.


I applied binary search approach.Interviewer told it is correct and start coding.Time Complexity: O(logN), using binary search
Auxiliary Space: O(1)
The minimum element is the only element whose previous is greater than it. If there is no previous element, then there is no rotation (the first element is minimum).
We check this condition for the middle element by comparing it with (mid-1)th and (mid+1)th elements.
If the minimum element is not at the middle (neither mid nor mid + 1), then:
If the middle element is smaller than the last element, then the minimum element lies in the left half
Else minimum element lies in the right half.


Right View of a Binary Tree using Level Order Traversal:
The idea is to use Level Order Traversal as the last node every level gives the right view of the binary tree.
Follow the steps below to solve the problem:
Perform level order traversal on the tree
At every level print the last node of that level
It was based on coding ,DSA round.Interviewer was helpful.Interview took place in afternoon.2 medium level,standard DSA questions were asked.



The numeric value of ‘a’ is 1, ‘b’ is 2.
The numeric value of “bde” is 2 + 4 + 5, i.e. 11.
If 'N' = 3 and 'V' = 10, you need to construct string as “aah".
Initialize a string res to store the resultant string.
Store the frequency of each character present in the given string in an array freq[].
Maintain an array vis[] for marking the characters that are already present in the resultant string res.
Traverse the given string S and for each character S[i], perform the following:
Decrease the frequency of the current character by 1.
If the current character is not marked visited in the array vis[], then perform the following:
If the last letter of res is less than S[i], add S[i] to res.
If the last letter of res is greater than S[i] and the count of the last letter of res exceeds 0, then remove that character and mark visit[S[i]] as 0 and continue this step till the above condition is satisfied.
After breaking out from the above condition, add S[i] to res and mark visit[S[i]] as 1.
After completing the above steps, print the string res as the result.



The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked list is 4 -> 3 -> 2 -> 1 -> NULL and the head of the reversed linked list will be 4.
Can you solve this problem in O(N) time and O(1) space complexity?
I reversed using stack.
Store the nodes(values and address) in the stack until all the values are entered.
Once all entries are done, Update the Head pointer to the last location(i.e the last value).
Start popping the nodes(value and address) and store them in the same order until the stack is empty.
Update the next pointer of last Node in the stack by NULL.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
To make an AI less repetitive in a long paragraph, you should increase: