Tip 1: DSA
Tip 2: CS Fundamentals (OOPS, DBMS)
Tip 1: Good Projects
Tip 2: Do not put the wrong things on your resume.
The first round was the aptitude and technical round. The test consisted of English, logical reasoning, and quantitative aptitude.



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.
It consists of 3 coding questions: 2 are easy, and 1 is of medium to hard level.



If the given adjacency matrix is:
[0 1 0]
[1 0 1]
[0 1 0] and M = 3.
The given adjacency matrix tells us that node 1 is connected to node 2 and node 2 is connected to node 3.
So if we color vertex 1 with ‘red’, vertex 2 with ‘blue’, and vertex 3 with ‘red’, it is possible to color the given graph with two colors which is less than or equal to M.


1. If the list is empty, the function immediately returns None because there is no middle node to find.
2. If the list has only one node, then the only node in the list is trivially the middle node, and the function returns that node.
When traversing the list with a slow pointer, create another pointer, fast, that traverses twice as fast. When fast reaches the end of the list, slow must be in the middle.



Can you solve each query in O(logN) ?

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