three missionaries and three cannibals must cross a river using a boat which can carry at most two people, under the constraint that, for both banks, if there are missionaries present on the bank, they cannot be outnumbered by cannibals (if they were, the cannibals would eat the missionaries.) The boat cannot cross the river by itself with no people on board. Move all missionaries and cannibals from one river bank to the other.
Lead Interview Questions
51,130 lead interview questions shared by candidates
The maximum size of the java string?
Given an array of numbers, e.g. [5,0,9,2,5,5,5] - return all the consecutive numbers that add up to N.
Experience was good. I was happy that I'm being selected in a company which is in my native state. My home was near. Totally personal, how many brothers and sisters, what your sister do, what her husband do, etc etc.
If you can do computations on a basic calculator and a standard random number generator, how would you use them in an algorithm to estimate the value of 'pi'?
2. Swap the two values (int A=5 and int B=3), w/o using a 3rd attribute(so you cant use the 3rd attribute to store the value as a temporary storage).
They asked basic questions about working with a diverse group, team work, how I would approach searching for things I wasn't familiar with or obtaining knowledge.
How would you handle a difficult situation with a cleaning incident?
Input is a string like "AAAAABBCCAA" and it should print "5A2B2C2A". 5 being the continuous number of occurance for character 'A'. Same is with other characters also.
complete QA Manager activities
Viewing 41 - 50 interview questions