Tip 1 : Prepare DSA thoroughly
Tip 2 : Practice commonly asked DSA questions
Tip 1 : Have atleast 1 project
Tip 2 : Put detailed info about technologies used in project
The test was conducted in-campus on lab computers. There was an invigilation team of nagarro present along with college teachers. Students were allowed to take small breaks between the 3 sections of test.



I was not able to solve this problem.



Can you solve this using not more than O(S) extra space, where S is the sum of all elements of the given array?
I was not able to solve this problem.



If the given input string is "aabc", then you should return "abc" as the longest substring without repeating characters.
If there are multiple substrings with the same length, then you should print the substring which comes earlier in the given string.
If the given input string is "abcda", here “abcd” and “bcda” can be the longest unique substring but “abcd” comes earlier in the given string. So we will print “abcd” as the longest unique substring.
I was not able to answer this question.



1 2 3
4 5 6
For the above 2*3 matrix , possible paths are (1 2 3 6) , (1 2 5 6) , (1 4 5 6).
You can return the paths in any order.
I was not able to solve this problem.
The interviewer was polite and helpful and gave me decent time to come up with answers. I was asked questions form my resume and also DSA questions.



I first gave a naive approach of finding all subarrays and using them to find the answer. While I was trying to find a more optimized approach, the time ran out.
This can be solved by using kadane's algorithm, the steps for which are:
-Initialize the variables max_so_far = INT_MIN and max_ending_here = 0
-Run a for loop form 0 to N-1 and for each index i:
-Add the arr[i] to max_ending_here.
-If max_so_far is less than max_ending_here then update max_so_far to max_ending_here.
-If max_ending_here < 0 then update max_ending_here = 0
-Return max_so_far
How does indexing work in SQL? Which data structure is used to implement it?
Tip 1: Read up on indexing in SQL
Tip 2: Learn about m-way trees for indexing
The time was 3pm. The interviewer was polite and calm.
Tell 4 positives and negatives about yourself.
Tip 1: Prepare for commonly asked HR questions
Tip 2: Always give some indirect positive quality in negative as well
Why do you want to join this company?
Tip 1: Read about the company in advance and know their motto etc.
Tip 2: Be prepared with positive qualities about the company
Why should we hire you?
Tip 1: Be prepared to list how you would be a great asset to the company
Tip 2: Give honest answers

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?