Getting maximum and minimun number was not difficult but getting less than n comparison was tricky.
Software Interview Questions
551,665 software interview questions shared by candidates
Implement a function to validate whether a given binary tree is a BST (i.e. write an isBST() function).
Given an integer set of numbers, print all the subsets. For some reason the interviewer asked to print the supersets, but what he means is subsets.
print a pattern 012345678910987654321
What is your dream job ?
Interviewer ask me to solve some permutation related problems. 1) Algorithm to get Index of a permutation when all permutations arranged in lexicographical order and its complexity
You have a 64bit interger counter set to 0. How long it will take to overflow the counter given that you are incrementing it at 4Ghz speed.
integer partiontioing given N (a integer) how many ways you can write as N summation of other numbers 5 = 1+ 2 +2 = 2+ 2 + 1 = 1 + 3 +1 = 1 + 4 etc.. write C code to print every combination
Given an unsorted array of integers, find first two numbers in the array that equal a given sum.
An optimal algorithm to check whether a hand of cards was a full house (in Poker) or not.
Viewing 191 - 200 interview questions