Tip 1: Data structures is a long-term journey, enjoy the learning process and avoid mugging up solutions.
Tip 2: Focus on impactful projects rather than random ones.
Tip 3: Practice mock interviews regularly.
Tip 1: Having an internship is a must to gain practical experience.
Tip 2: Keep an achievements section to highlight your key accomplishments.
The test was held online on the Infosys Wingspan Portal.
The OA had 3 questions, categorized as Easy, Medium, and Hard.
The camera was on throughout.


[1, 2] and [3].
[2, 3] and [1].
[1, 3] and [2].
I kept track of the range where the special parcel could be after each move.
Based on each operation, I updated this range and counted how many positions were possible.



The array consists of elements from 1 to ‘N’.
The array contains at least one ‘N’ length strictly increasing subsequence.
A subsequence of an array is an ordered subset of the array's elements having the same sequential ordering as the original array. For example, the subsequences of the array [1, 2, 3] are [1], [2], [3], [1, 2], [1, 3], [2, 3] and [1, 2, 3] where [2, 1], [3,2, 1] are not subsequence of array [1, 2, 3]
The longest increasing subsequence of an array of numbers is the longest possible subsequence that can be created from its elements such that all elements are in strictly increasing order.
For M = 3 and N = 2
array : [ 1, 1, 2 ] [ 1, 2, 1 ] [ 1, 2, 2 ] [ 2, 1, 2 ] are beautiful.
array: [ 1, 1, 1 ] [ 2, 1, 1 ] [ 2, 2, 1 ] [ 2, 2, 2 ] are not beautiful.
I tried checking all pairs and counting divisors for each number.
It worked for small cases but was too slow for larger inputs.



If 'A' = {3, 5, 4, 1}
then the output will be 2.
Maximum value occurs for the pair (3, 4)
I used the Manhattan distance idea and tried to count all valid points.
I wasn’t able to fully optimize it for all dimensions, so some test cases failed.
The round consisted of pure DSA and core CSE fundamentals.
The onsite round was divided into two mini rounds:
After the 90-minute test was over, the interview started and included questions on topics like bipartite graphs, linked lists, string compression, BFS traversal, SQL window functions, and lambda expressions in Java.
Since I couldn’t solve the two DSA questions, which were very important, I was rejected.



Let 'ARR' = [1,0,0] then the possible subarrays of 'ARR' will be: {1}, {0}, {0}, {1,0}, {0,0}, {1,0,0}.
If the given array 'ARR' = [1,0,0,0,1,1,0,1]
Then the number of 1’s subarrays will be 5. [{1},{1},{1},{1,1},{1}]
And the number of 0’s subarrays will be 7. [{0},{0},{0},{0,0},{0,0},{0,0,0},{0}]
So our answer will be 5 + 7 = 12.
I understood the problem but wasn’t able to fully solve it within the time limit.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which data structure is used to implement a DFS?