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 Development Interview Questions
37,302 software development interview questions shared by candidates
Given a bitmap, find the largest size of adjacent 1's.
The first question was to find the first word on a stream that do not repeat in the rest of the stream. I got some Interfaces that I needed to implement, there was a example input and output.
Given an integer, find the next biggest integer whose digits are in increasing order. Example: Input: 118 Output: 123 Input: 127 Output: 234 Input: 987 Output: 1234 Desing question: Design a parking space to park a car.
1. Giving an array of integers from 1 to n-1 in random order where n is the size of the array. Find duplicates in the array and identify its runtime.
Given an array of integers, return the most frequent integer.
Compare and Book and a Three Ring Binder using data structures and classes.
Intersection of arrays
find 2 numbers which summation is a give number
Given a time-ordered log of user visits to web pages find the most common 3-page sequence
Viewing 901 - 910 interview questions