Tip 1 : Practice sufficient amount of questions for each topic
Tip 2 : Make notes for cs fundamentals, it reduces a lot of time for revision
Tip 3 : Note down the algorithms and questions that you couldn't solve in first attempt.
Tip 1 : Make sure the resume is neat and tidy and must be a single page resume for freshers.
Tip 2 : You should have enough knowledge about the things you mention in the resume.
The test was conducted in the morning at around 9:00 AM. Three problems were given, all based on data structures and algorithms.



A -> 1
B -> 2
C -> 3
...
Z -> 26
AA -> 27
AB -> 28
...
You have run a loop to convert the number. In every step take modulus of n by 26 which is mapped to the required character. if(n%26==0) Required letter is Z else (n%26-1)+'A' and n/=26. Continue till n!=0;



If more than one such contiguous subarrays exist, consider the subarray having the smallest leftmost index.
For example - if A is [1, 2, 2, 3, 1, 3 ] and k = 2 then the subarrays: [1,2], [2,3], [3,1], [1,3] are the smallest subarrays containing 2 distinct elements. In this case, we will consider the starting and ending index of subarray [1,2] i.e. 0 and 1.



A bipartite graph is a graph whose vertices can be divided into two sets such that each edge of the graph connects one vertex from the first set and another vertex from the second set.
We can also define a bipartite graph as a graph which can be colored using two colors such that no two adjacent vertices have the same color.
For example:
Input:
4 4
0 1
0 2
1 3
2 3
An undirected graph to the above input is shown below:

In the given input, the number of vertices is 4, and the number of edges is 4.
In the input, following the number of vertices and edges, a list of pairs of numbers is given where each pair (u, v) denotes an edge between vertex u and v.
As per the input, there is an edge between vertex 0 and vertex 1.
The vertices 0 and 2 have an edge between them.
The vertices 1 and 3 have an edge between them.
The vertices 2 and 3 have an edge between them.
As the graph can be colored using two colors, and no adjacent vertices share the same color, the graph is bipartite.
Tip 1 : Read DSA daily
Tip 2 : Some questions are this are the same copy of one you practised earlier. So practise helps you very much for interview questions of DSA
It was conducted at around 12:00 PM on Cisco webex. Two questions based on DSA were asked



It is possible for Mr. X to rob the same amount of money by looting two different sets of houses. Just print the maximum possible robbed amount, irrespective of sets of houses robbed.
(i) Given the input array arr[] = {2, 3, 2} the output will be 3 because Mr X cannot rob house 1 (money = 2) and then rob house 3 (money = 2), because they are adjacent houses. So, he’ll rob only house 2 (money = 3)
(ii) Given the input array arr[] = {1, 2, 3, 1} the output will be 4 because Mr X rob house 1 (money = 1) and then rob house 3 (money = 3).
(iii) Given the input array arr[] = {0} the output will be 0 because Mr. X has got nothing to rob.
It was a dynamic programming based problem. First I explained the recursive solution then applied memoization to the solution.



If the given array is [1, 3, 2], then you need to return [3, -1, -1]. Because for 1, 3 is the next greater element, for 3 it does not have any greater number to its right, and similarly for 2.
This was a straight problem based on stack. First I used brute force method to solve the problem and explained its time complexity. Then explained optimised solution and explained the algorithm through given test cases
This was a managerial round where a Senior Manager took the interview, explained about work culture etc. Two problems were asked based on DSA.



If the given linked list is 1 -> 2 -> 3 -> 4 -> 5 -> NULL.
Then rearrange it into 1 -> 5 -> 2 -> 4 -> 3 -> NULL.
I first used an stack to store alternative elements of linked and then performed the rearrangement.



First used brute force using sort then provided optimised solution
This was taken by a HR member explaining about work culture, teams, tech stack, locations etc.
Tip 1 : Stay confident and honest
Tip 2 : Show a positive attitude
Tip 3 : Keep a slight and constant smile

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?