Very simple and straightforward. They don't just look for the final answer; they look for how you arrived at the answer. Be sure to talk your way through deriving your answer.
You have a river n units wide.
You have a grasshopper on the left side of the river. The grasshopper wants to cross the river by jumping across it, but it's too wide, so it needs help.
The river has floating stones across it (assume they are present in a straight line). The grasshopper can jump onto these stones and use them to cross.
But there are some conditions:
V, it can fly V-1, V, or V+1 units away from the place it jumped from.V=1.Given a boolean vector to represent the stones across the river (if arr[i] is true, there is a stone at the ith position of the river), write a function that will return a boolean indicating if the grasshopper can cross the river.
The following metrics were computed from 26 interview experiences for the Microsoft Software Engineer II role in Redmond, Washington.
Microsoft's interview process for their Software Engineer II roles in Redmond, Washington is fairly selective, failing a large portion of engineers who go through it.
Candidates reported having very good feelings for Microsoft's Software Engineer II interview process in Redmond, Washington.