Sequence of robot moves and find circular loops in given moves sequence. sequence = "<<>>>>^v^v>><<" , < WEST, > EAST, ^ NORTH, v SOUTH. ^v this is a circular loop. find all such loops in a moves sequence.
Software Developers Interview Questions
96,181 software developers interview questions shared by candidates
Can you explain the 5 basic principals for object oriented programming?
Did you ever take any decision against the team and did you succeed?
Given a mutable string (array of characters) of words, how would you reverse the order of the words in the string, not the entire string. This must be done in place, i.e. not using any additional memory. eg) "Hello World" => "olleH dlroW"
2 stacks are given, one is full of numbers and other in empty, one integer variable is given, fill the 2nd stack with numbers in ascending order with space and time constraints.
3) Given a N*N array where N is even such as 4, 8 and so on . Print the array from the center. a= [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16] the output should be [6 10 12 7 3 2 1 5 9 13 14 15 16 12 8 4 ] .
second round puzzle(google one) :Four people need to cross a rickety bridge at night. Unfortunately, they have only one torch and the bridge is too dangerous to cross without one. The bridge is only strong enough to support two people at a time. Not all people take the same time to cross the bridge. Times for each person: 1 min, 2 mins, 7 mins and 10 mins. What is the shortest time needed for all four of them to cross the bridge? instead of 7 mins,interviewer said it to be 5 mins :( and expected right answer from me.
how to sort 2 different arrays,and save the result in the second array, if the first contains n elements, and the second contains m elements, and the second is alocated a length of m+n.
Are u ready for 2 years bond?
2. Algorithm question (given two lists of arrays, check whether the first string can be generated by characters in the second string)
Viewing 431 - 440 interview questions