The interviewer asked a question about sorting cards. Given a complete set of cards, you should sort them without using extra space.
Software Interview Questions
551,205 software interview questions shared by candidates
You have to measure exactly 4 liters of water, but you only have a 3-liter bottle and a 5-liter bottle. How do you do it?
Reverse words in a sentence so like ex: to be or not to be return be to not or be to Note: I'm a freshman in college and he knows I don't know much so I got an easy question
Given an array A, find the count of the ordered pairs. An ordered pair is defined as any number A[j], such that A[j]>A[i] and j>i. You have to do this in optimal time.
Write a code for finding a certain element in an unsorted array assuming element definitely exists. How can we improve the efficiency?
Write a non-recursive traversal of a Binary Search Tree using constant space and O(n) run time.
write a sub string in a string
Sorting Algorithms Optimizations from 2 loops to just 1 loop
- Given a string, how would you determine if that string contains a palindrome?
What is stack?
Viewing 2201 - 2210 interview questions