Tip 1: Practice advanced level coding questions for test and interview.
Tip 2: Study data structures in detail.
Tip 1: Have strong projects in resume.
Tip 2: Mention coding rank of coding platforms if any.
This round was conducted on Vitapowered platform and it had 62 questions. The workstyle assessment questions were not technical, it was just for checking how suitable the candidate is for the position.



1. The heights of the buildings are positive.
2. Santa starts from the cell (0, 0) and he has to reach the building (N - 1, M - 1).
3. Santa cannot leave the grid at any point of time.
We use a greedy approach as follows:
Step 1: Start from the first index and keep track of the maximum index you can reach based on the current element's value.
Step 2: As you iterate through the array, update the maximum reachable index at each step.
Step 3: If at any point the current index surpasses the maximum reachable index, you know you cannot reach the last index, and you can return False.
Step 4: However, if you successfully reach the last index or go beyond it, you can return True as you have successfully reached the end of the array.



We use a sliding window approach as follows:
Step 1: Initialize two pointers, left and right, both starting at index 0.
Step 2: Maintain a count of the number of zeroes encountered within the current window.
Step 3: While the count of zeroes remains less than or equal to B, expand the window by moving the right pointer to the right.
Step 4: If the count of zeroes exceeds B, move the left pointer to the right while reducing the count of zeroes until the window is valid again.
Step 5: Keep track of the maximum window size and the corresponding start index.



F(n) = F(n-1) + F(n-2),
Where, F(1) = F(2) = 1.
For ‘N’ = 5, the output will be 5.
Tip 1: Practice function writing or error finding code questions
Tip 2: Read the question carefully



‘ARR1’ = [3 6 9 0 0]
‘ARR2’ = [4 10]
After merging the ‘ARR1’ and ‘ARR2’ in ‘ARR1’.
‘ARR1’ = [3 4 6 9 10]
Tip 1: Practice function writing or error finding code questions
Tip 2: Read the question carefully
B2CD, _____, BCD4, B5CD, BC6D
Tip 1: Practice logical reasoning questions.
Tip 2: Keep pen and paper by your side.
Though the waste of time or the expenditure on fashions is very large, yet fashions have come to stay. They will not go, come what may. However, what is now required is that strong efforts should be made to displace the excessive craze for fashion from the minds of these youngsters.
The passage best supports the statement that:
Tip 1: Practice logical reasoning questions
Tip 2: Keep pen and paper by your side
Pointing to a photograph, a man said, "I have no brother, and that man's father is my father's son." Whose photograph was it?
Tip 1: Practice logical reasoning questions
Tip 2: Keep pen and paper by your side
This was a 1-hour long interview, but everything depends on how fast you can solve coding questions in interview. The major focus is on coding questions.







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]
Step 1: Initialize two queues, let's call them queue1 and queue2.
Step 2: For the push operation, simply enqueue the element into queue1.
Step 3: For the pop operation:
a. While there are elements in queue1 except the last one, dequeue from queue1 and enqueue into queue2.
b. Dequeue the last element from queue1 (this is the element to be popped).
Step 4: Swap the names of queue1 and queue2 to maintain the consistency of the operations. This ensures that queue1 always contains the elements in the order they were pushed.
Step 5: For the top operation, you can peek at the front element of queue1 (which is the top element of the stack).
What is deadlock? What are the necessary conditions to achieve deadlock? (Learn)
Tip 1: Hear the question carefully.
Tip 2: Study deadlock in operating system.
What is slicing in Python? (Learn)
Tip 1: Hear the question carefully
Tip 2: Study slicing in Python
This interview was almost same as first interview, a 1 hour long. The major focus is on coding questions.
What are different types of JOINS in SQL? (Learn)
Tip 1: Study JOINS in SQL
Tip 2: Hear the question carefully
Explain the difference between split() and join() functions in Python. (Learn)
Tip 1: Study string functions in Python.
Tip 2: Hear the question carefully.



Infix notation is a method of writing mathematical expressions in which operators are placed between operands.
For example, "3 + 4" represents the addition of 3 and 4.
Postfix notation is a method of writing mathematical expressions in which operators are placed after the operands.
For example, "3 4 +" represents the addition of 3 and 4.
Expression contains digits, lower case English letters, ‘(’, ‘)’, ‘+’, ‘-’, ‘*’, ‘/’, ‘^’.
Input: exp = ‘3+4*8’
Output: 348*+
Explanation:
Here multiplication is performed first and then the addition operation. Hence postfix expression is 3 4 8 * +.
Step 1: Initialize an empty stack to hold operators temporarily.
Step 2: Initialize an empty string to hold the postfix expression.
Step 3: Iterate through the infix expression from left to right.
Step 4: If the current character is an operand (numeric value or variable), add it to the postfix expression.
a) If the current character is an operator (+, -, *, /, etc.), pop and append operators from the stack to the postfix expression while their precedence is greater than or equal to the precedence of the current operator and the top of the stack is not an opening parenthesis.
b) Push the current operator onto the stack.
c) If the current character is an opening parenthesis '(', push it onto the stack.
Step 5: If the current character is a closing parenthesis ')', pop and append operators from the stack to the postfix expression until an opening parenthesis '(' is encountered. Pop and discard the opening parenthesis.
Step 6: After processing all characters, pop and append any remaining operators from the stack to the postfix expression.
Step 7: The resulting string will be the postfix expression.



In the given linked list, there is a cycle, hence we return true.

Step 1: Initialize an empty hash table (or set) to store visited nodes.
Step 2: Traverse the list, one node at a time: a) For each node, check if it exists in the hash table. If it does, return True, as a cycle is detected. b) If the node is not in the hash table, add it to the hash table and move to the next node.
Step 3: If you reach the end of the list without encountering a node that is already in the hash table, return False, as no cycle is detected.

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?