Tip 1 : Prepare with DSA well
Tip 2 : Read interview experience before interview
Tip 3 : Read about all core subjects
Tip 1 : Mention all projects with GitHub link
Tip 2 : Mention skills with proof, ex: leetcode link for show case DSA skills
It was a 90 minutes online coding round. There were 3 coding questions (easy-medium) and all were mandatory to attempt. Questions covered were from arrays, string, DP.



1. Both STR and PTR consist of English uppercase letters.
2. Length of string 'STR' will always be greater than or equal to the length of string ‘PTR’.
3. In case, there is no anagram substring, then return an empty sequence.
4. In case of more than one anagrams, return the indices in increasing order.
Tip 1 : I solved it with the naive approach
Tip 2 : Manage time properly because 3 questions in 90 minutes may sound easy but take time to solve



You are allowed to break the items.
If 'N = 4' and 'W = 10'. The weights and values of items are weights = [6, 1, 5, 3] and values = [3, 6, 1, 4].
Then the best way to fill the knapsack is to choose items with weight 6, 1 and 3. The total value of knapsack = 3 + 6 + 4 = 13.00



Input: arr[] = {1,1,1,2,2,2}
Output: {1,2,1,2,1,2}
Note: {2,1,2,1,2,1} is also valid because there are no two adjacent elements which are the same.
It was a 40-50 minutes technical round on zoom.
It started with tell me about yourself. Gave me 2-coding questions (medium-hard).



I started with a naive approach
Create an output array of size N * K.
Traverse the matrix from start to end and insert all the elements in the output array.
Sort and print the output array.
Then I explained the optimal approach which was based on merging.



1. Constructor:
It initializes the data members(queues) as required.
2. push(data) :
This function should take one argument of type integer. It pushes the element into the stack and returns nothing.
3. pop() :
It pops the element from the top of the stack and, in turn, returns the element being popped or deleted. In case the stack is empty, it returns -1.
4. top :
It returns the element being kept at the top of the stack. In case the stack is empty, it returns -1.
5. size() :
It returns the size of the stack at any given instance of time.
6. isEmpty() :
It returns a boolean value indicating whether the stack is empty or not.
Query-1(Denoted by an integer 1): Pushes an integer data to the stack. (push function)
Query-2(Denoted by an integer 2): Pops the data kept at the top of the stack and returns it to the caller. (pop function)
Query-3(Denoted by an integer 3): Fetches and returns the data being kept at the top of the stack but doesn't remove it, unlike the pop function. (top function)
Query-4(Denoted by an integer 4): Returns the current size of the stack. (size function)
Query-5(Denoted by an integer 5): Returns a boolean value denoting whether the stack is empty or not. (isEmpty function)
Operations:
1 5
1 10
2
3
4
Enqueue operation 1 5: We insert 5 at the back of the queue.
Queue: [5]
Enqueue operation 1 10: We insert 10 at the back of the queue.
Queue: [5, 10]
Dequeue operation 2: We remove the element from the front of the queue, which is 5, and print it.
Output: 5
Queue: [10]
Peek operation 3: We return the element present at the front of the queue, which is 10, without removing it.
Output: 10
Queue: [10]
IsEmpty operation 4: We check if the queue is empty.
Output: False
Queue: [10]
I first implemented a stack running correctly and then added the modification with the explanation.
He asked me to optimise the code and gave me some hints. I was able to code and explain.
After implementing my approach, I asked for some test cases and made a dry run.
I explained my intuition and also the complexities.
I also explained some other optimal approaches I was not asked to code.
This round was not on technical knowledge, I was asked about my education and my skills and what I know about Ola and Ola Electric.
Tell me about yourself.
What do you know about OLA?
Any issue you have ever faced with OLA Cabs and how will you fix it as a developer?
What projects you have worked on?
What were the challenges you faced in your remote internship and how did you overcome them?
Are you suitable with the office location?

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