There are 100 people standing near the beginning of a row of 100 closed doors. The first person goes down the row and opens every door. The second person closes every 2nd door. The third person changes the state of every 3rd door, and so on. Write a routine to find the state of door X after person Y passes by.
Software Interview Questions
550,978 software interview questions shared by candidates
Some questions about Java basics, and some math problems and SQL
"What do you know about our company?" "Do you have some questions for me?"
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.
Skype interview Anagrams, given an array of Strings and return all groups of strings that are anagrams.
Write a program to solve a problem.
// // Write a function that takes a string and returns its length without using built in properties (such as .length or .size()). //
Write an algorithm to print out all of the possible solutions for a^3 + b^3 = c^3 + d^3
How would you implement int atoi ( const char * str );
If you have unmarked two buckets which you know are 3 and 5 gallons in volume and an unlimited supply of water, how would you get exactly 4 gallons of water?
Viewing 1861 - 1870 interview questions