Tip 1 : Do related Projects
Tip 2 : Practical Experience always works in your favour
Tip 1 : Have some projects on resume.
Tip 2 : Do not put false things on resume.
It was a pure DSA round. 2 basic level of DS questions were asked in this round
A subsequence is a sequence that can be derived from another sequence by deleting some or no elements without changing the order of the remaining elements.
You need to print your answer modulo 10^9 + 7.
Let us take A = [1,2,3] and P = 4.
All the subsequences not having product more than ‘4’ are {1}, {2}, {3}, {1,2}, {1,3}. Therefore count is equal to ‘5’.
Step 1 : I first applied bubble sort. It was not good enough.
Step 2 : Interviewer asked me to optimise the solution.
Step 3 : Then I gave solution with merge sort and interviewer was happy.
Create two pointers and with the help of those, traverse the linked list from both ends starting and from the end too. At every step swap the nodes and change their links
One coding problem was asked to code and one DBMS + OS set of questions were presented in this round
If the given input string is "Welcome to Coding Ninjas", then you should return "Ninjas Coding to Welcome" as the reversed string has only a single space between two words and there is no leading or trailing space.
Take two pointers, with one traverse the string and when you find a space reverse the string and then put the first pointer to the next position of white space.
Repeat this procedure till the end of string
Tip 1 : Read Galvin for OS thoroughly.
Tip 2 : Do practice for SQL queries.
Tip 3 : Go through DBMS concepts
It was a Basic HR Round. Interviewer was a senior placeholder in HCL. He was very friendly in nature and also asked me to chill down
Tip 1 : Be confident while giving answers
Tip 2 : Practise basic HR Questions
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is 3 + 2 * 4 based on operator precedence?