Tip 1 : Be proficient in any 1 programming language.
Tip 2 : Practice DSA thoroughly.
Tip 3 : Have a clear understanding of core subjects.
Tip 1 : Resume should be 1 page long.
Tip 2 : Focus more on skills and projects.
There were 3 DSA based problems and the time was 90 minutes. Out of 3 problems, 1 was easy and other two were medium/hard questions.



A mapping from Digits to Letters (just like in Nokia 1100) is shown below. Note that 1 does not map to any letter.

This can be solved using recursion. It can be observed that each digit can represent 3 to 4 different alphabets (apart from 0 and 1). Map the number with its string of probable alphabets, i.e 2 with “abc”, 3 with “def” etc. Now the recursive function will try all the alphabets, mapped to the current digit in alphabetic order, and again call the recursive function for the next digit and will pass on the current output string.
Algorithm:
Map the number with its string of probable alphabets, i.e 2 with “abc”, 3 with “def” etc.
Create a recursive function which takes the following parameters, output string, number array, current index, and length of number array
If the current index is equal to the length of the number array then print the output string.
Extract the string at digit[current_index] from the Map, where the digit is the input number array.
Run a loop to traverse the string from start to end
For every index again call the recursive function with the output string concatenated with the ith character of the string and the current_index + 1.
Time Complexity: O(4^n), where n is a number of digits in the input number. .
Space Complexity:O(1).



Use zero-based indexing for the vertices.
The given graph doesn’t contain any self-loops.
I used Kosaraju’s algorithm to find the strongly connected components (SCCs) in the directed graph.




Can you solve the problem in O(N) time?
I solved this problem using a greedy approach.

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