Group of people, you can call Know(i,j) to ask if ith person knows jth, the return value is true (i knows j) or false (i does not know j). Find the person that everybody else knows him but he knows nobody.
Software Development Engineer Interview Questions
32,835 software development engineer interview questions shared by candidates
Given length of 3 sides as input, tell whether they form a valid triangle or not. Write all possible test cases to check your algo..
Delete n-th element from linked list. Note, you don't have a pointer to the Head of the list.
Given the definition of a Fibonacci sequence, write a function to give the n-th term of the sequence.
Pick out k random elements from a very long linked list
implement sqrt
You have an image and you have to find the average of the image i.e. average of all the pixels into one pixel. The pixel has 3 values, R, G and B. Each R, G and B is a 8 bit number. Write the code for it in C.
Given an array of a 999,999 numbers, from 1 to a 1,000,000, there's one number missing. The array is not sorted, and you can only access the array using a function getNumber(), which pops one number from the array. Each number in the array can only be accessed once. There's one number missing, from 1 to 1 million. which number is this?
How would you call fire brigade if your office catches fire? Consider you dont have internet, telephone, or any means of communication.
Given a linked list with cycle, find the cycle.
Viewing 861 - 870 interview questions