Tip 1: Understand the Fundamentals: Ensure you grasp fundamental programming concepts such as data structures, algorithms, and object-oriented programming. Review key topics like arrays, linked lists, stacks, queues, trees, sorting, searching, and graph algorithms.
Tip 2: Practice, Practice, Practice: Regular practice is essential for coding rounds. Solve various coding problems from different sources, including coding websites, books, and online coding platforms. Start with easier problems and gradually move to more complex ones to build problem-solving skills.
Tip 1 : Have some projects on your resume.
Tip 2 : Do not put false things on your resume.
It was at 10 am sharp in the morning. There were two parts to the online assessment round. The first part is the coding round(two questions were asked). And 2nd part is the work simulation round.



1. The array follows 0-based indexing, so you need to return the 0-based index of the element.
2. Note that the element at the equilibrium index won’t be considered for either left sum or right sum.
3. If there are multiple indices which satisfy the given condition, then return the left-most index i.e if there are indices i,j,k…. which are equilibrium indices, return the minimum among them
4. If no such index is present in the array, return -1.
The idea is to get the total sum of the array first. Then Iterate through the array and keep updating the left sum, which is initialized as zero. In the loop, we can get the correct sum by subtracting the elements individually.



If two or more such subarrays exist, return any subarray.
An efficient solution is while traversing the array, storing sum so far in currsum. Also, maintain the count of different values of currsum in a map. If the value of currsum is equal to the desired sum at any instance increment count of subarrays by one.
The value of currsum exceeds the desired sum by currsum – sum. If this value is removed from currsum then the desired sum can be obtained. From the map, find the number of subarrays previously found having sum equal to currsum-sum. Excluding all those subarrays from the current subarray, gives new subarrays having the desired sum.
So increase count by the number of such subarrays. Note that when currsum is equal to the desired sum then also check the number of subarrays previously having a sum equal to 0. Excluding those subarrays from the current subarray gives new subarrays having the desired sum. Increase the count by the number of subarrays having sum 0 in that case.
It was at 9 am in the morning. The interviewer, an SDE-2, introduced himself and asked me to do the same. Then, he inquired about my internship before directly jumping to coding questions.



Input: Consider the following Binary Tree:
Output:
Following is the level-order traversal of the given Binary Tree: [1, 2, 3, 5, 6, 4]
For each node, first, the node is visited and then it’s child nodes are put in a FIFO queue. Then again the first node is popped out and then it’s child nodes are put in a FIFO queue and repeat until queue becomes empty.



If the input string is ‘str’ = ”aazbbby”, then your output will be “azby”.
Note that we are just removing adjacent duplicates.
Basic Approach is to create a Stack that store the
Character and its continuous repetition number This is
done using pair Further we check at each
iteration, whether the character matches the top of stack
if it does then check for number of repetitions
else add to top of stack with count 1
The test had 3 questions that had to be solved in 75 minutes. The test was of medium difficulty.



1. The maximum obtainable value can always be stored in 64-bit memory space.
2. The given number 'X' is always non-negative.
A bitwise XOR is a binary operation that takes two bit patterns of equal length and performs the logical exclusive OR operation on each pair of corresponding bits. The result in each position is 1 if only one of the bits is 1 but will be 0 if both are 0 or both are 1.



1. If 'X' is not found in the array, return 0.
2. The given array is sorted in non-decreasing order.
We have given a sorted array arr and a number X. We have given task is to count the number of occurrences of X in arr.

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