Asked question: Using an already implemented method Rand5() that generates a random integer between the ranges 1-5 uniformly. Using this method, implement a a new method that returns a random integer in the range 1-7 uniformly, i.e. Rand7(). Basically this is Rejection Sampling Algorithm. See http://leetcode.com/2010/11/rejection-sampling.html
Software Developer In Test Interview Questions
12,688 software developer in test interview questions shared by candidates
Print all the combination of 110011111 number without repetitions in values using java/c within in 20 min in an optimal way
Roman to Int
Tree Data Structure
Write code to reverse a linked list from its mid point. So 1->2->3->4->5->6->7 becomes 1->2->3->7->6->5->4
Implement atoi()
String manipulation related questions were asked
find common ancestor in binary tree
Count no. of words in a string
Reverse the string
Viewing 271 - 280 interview questions