Tip 1 : Start with clearing your fundamentals first, then focus on solving easy questions first. When you are comfortable with them, gradually increase the question difficulty.
Tip 2 : Consistency and patience is all what it takes. Make a habit of solving atleast 2 ds questions no matter how busy you are. Get started with leetcode daily challenge, It helped me alot as everyday, you get to solve random question.
Tip 3 : Even after solving the question, read the discuss section for that question, you will get good idea about other approaches and check whether you solved with the optimal approach.
Tip 1 : know what you are writing on resume, interviewer do read them and will dig deep into details about what you have written
Tip 2 : Have atleast one good project
Timing - 3:00 pm (IST) Noon
It was virtual, interview was on chime



- An encoded string will be of the form <count>[encoded_string], where the 'encoded_string' inside the square brackets is being repeated exactly 'count' times. Note that 'count' is guaranteed to be a positive integer and can be greater than 9.
- There are no extra white spaces and square brackets are well-formed.
Input: 2[a]
“a” is encoded 2 times, hence the decoded string will be "aa".
Input: 3[a2[b]]
“b” is encoded 2 times, which decodes as 3[abb]. Now, "abb" is encoded 3 times, hence decoded string will be "abbabbabb".
I had solved this question while preparing, hence I knew the approach and i straight away told my approach.
I told her the approach which i had in mind, the inteviewer asked one two clarifying questions. My approach was to use stack.
After having discussion, Interviewer told me to code the solution.
Once i was done writing the code, i had to dry run it over few test cases.
All the test cases interviewer mentioned, I dry run it over my code and explained the output
It was all done in 35 minutes.
Then one two questions regarding my current work
Timing - 1:00 pm (IST) Noon



1. The grid has 0-based indexing.
2. A rotten orange can affect the adjacent oranges 4 directionally i.e. Up, Down, Left, Right.
I thought about the question and applied BFS in the question
interviewer focused more on how I was coming to the solution and why will BFS give the minimum time.
After giving the answer, I was supposed to code the solution.
I code the solution on time, interviewer was happy and then we moved to the next question.


If the given matrix is:
[ [1, 2, 5],
[3, 4, 9],
[6, 7, 10]]
We have to find the position of 4. We will return {1,1} since A[1][1] = 4.
Step 1 : I gave the brute force solution. Interviewer told me to optimise it.
Step 2 : I knew the solution already, I gave the o(n+m) solution and he was sartisfied with the approach.
Step 3 : I coded up the solution and he made me dry run for few test cases. He was happy as i was able to solve both the questions on time.
Timing - 1 pm noon



Serialization is the process of translating a data structure or object state into a format that can be stored or transmitted (for example, across a computer network) and reconstructed later. The opposite operation, that is, extracting a data structure from stored information, is deserialization.
I gave one solution to have both the inOrder and preorder/postorder. And i can serialise and deserialise binary tree from there.
Interviewer told me to think of another approach.
I have gave the level order traversal approach to the solution,
Interviewer asked few questions
and once i was done with my approach, Interviewer told me to code the solution
He was happy with my solution.
Timing - 2:00pm IST



A 'deep copy' of a linked list means we do not copy the references of the nodes of the original linked list, rather for each node in the original linked list, a new node is created.
I had solved this question previously
I told the solution and how i will go about it. He was satisfied with the approach and asked me to code the solution.
Interviewer gave me one test case to dry run, upon successfully doing it
Interviewer seemed happy.
Timing 4:00pm



I gave the brute force solution, interviewer told me to optimise it
I was able to solve it using binary search, interviewer then told me to code the solution
After this question
He asked few situation based question like
Time when you work under tight deadlines, time when you deep dive to fix a bug

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?