Tip 1 : Have atleast 2 projects in resume and must have full knowledge about them.
Tip 2 : Solve first easy and medium level programming questions then Hard ones
Tip 3 : First solve hacker rank and geeks for geeks problem and then Leetcode will me more than efficient
Tip 1 : Resume should not cross more than two pages
Tip 2 : Have minimum of 2 projects
Tip 3 : Should sound more technical less managerial or personal traits
Have 2- 3 shifts from morning till evening.
Environment was quite and good
3 coding questions to solve in 2 hours



N = 3
A = [ 3, 4, 5 ]
Explanation :
One of the optimal ways to play the game is :
Ninja removes 3 stones from the first pile : [ 0, 4, 5 ].
Friend removes 3 stones from the second pile : [ 0, 1, 5 ].
Ninja removes 3 stones from the third pile : [ 0, 1, 1 ].
Friend removes 1 stone from the second pile : [ 0, 0, 1 ].
Ninja removes 1 stones from the third pile : [ 0, 0, 0 ].
Thus Ninja wins the game here.



Consider the case ‘ninja’array is [ 1, 2, 3, 4 ], ‘enemies’array is [ 2, 1, 4, 5 ] and ‘allowedSwaps’ are = [ [ 0, 1 ], [ 2, 3 ] ] so after swapping in best manner according to ‘allowedSwaps’ our ‘ninja’ array becomes [ 2, 1, 4, 3 ]. So minimum Hamming distance is ‘1’ as now there is only one different element as compared to ‘ninja’ and ‘enemies’ array index.
1. You are allowed to do as many swap operations on the ‘ninja’ array as you want but according to the ‘allowedSwap’ array.
2. You are not required to print anything explicitly. It has already been taken care of. Just implement the function.
It was interview round.
Around 2PM.
In Pune.
Nice environment.
They have given one problem based on graph to solve and explain.
Explain about your projects completely.
Java basic questions.
Operating system problems and questions.
Mainly interview went on the question given by team by to solve graph problem



In the below map of Ninjaland let say you want to go from S=1 to T=8, the shortest path is (1, 3, 8). You can also go from S=1 to T=8 via (1, 2, 5, 8) or (1, 4, 6, 7, 8) but these paths are not shortest.

This we have to find the shortest path from node 0 to all the other nodes in graph.
Then create a unvisited nodes.
Remove array element from unvisited nodes array when you visit them.
Create a array for distance and initialised it to infinity and once you more along the nodes then change from infinity to the distance you find.
It is visited and not the distance and add it to the path
Finally you will see all the notes that are visited and along with it what is the distance of it that will be your final result of shortest path.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
To make an AI less repetitive in a long paragraph, you should increase: