Tip 1 : Participate in live contests on websites like Codechef, Codeforces etc as much as possible.
Tip 2 : Practice previous interview questions from LeetCode, GeeksForGeeks.
Tip 3 : Revise Computer Science subjects like DBMS, OOPS thoroughly.
Tip 1 : Add projects and Internships if you have done any and add only those things which you really know.
Tip 2 : Do not put false things on resume.
- Morning time
- Environment was good.
- Interviewer was good



If the given string is 56789, then the next greater number is 56798. Note that although 56790 is also greater than the given number it contains 1 '0' which is not in the original number and also it does not contain the digit '8'.
The given string is non-empty.
If the answer does not exist, then return -1.
The given number does not contain any leading zeros.
s1- I have done this question earlier so just use already built algorithm which traverses the number from the back.
s2- smallest number that has same set of digits as n and is greater than n



'G': it means that the robot will move 1 unit in the direction it is facing.
'L': it means that the robot will move 90 degrees towards its left. For example, if the robot is facing north and it has to make an ‘L’ move, then it will start facing the west direction.
'R': it means the robot will move 90 degrees towards its right. For example, if the robot is facing north and it has to make an ‘R’ move then it will start facing the east direction.
s1- I simply started from 0,0 point
s2- if the robot again reaches to 0,0 point then motion is circular. I explained my whole approach on paper to the interviewer.


s1- I used the Kadane algorithm.
s2- to solve this question and wrote a clean code with which could work on negative numbers also.



S1- I solved this question using a priority queue(max heap)
S2- by inserting all elements in the priority queue and then taking the maximum two out of them and pushing their sum again to the priority queue.
- Describe who you are? or Tell me about your background.
- What are your strengths and weaknesses?
- You have not done your PG yet. This is not a drawback, but don’t you think you should get a PG degree asap?
- You have changed jobs/jumped ship too many times already, why so?
- What are your strong points? or What are your strengths?
- What is your greatest fear?
Tip 1: Communication skills is must
Tip 2: Give mock tests.

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