Basic Algo questions. 1 DP question and then design questions.
Software Interview Questions
551,386 software interview questions shared by candidates
/* You have rating (0-10) of the hotels per user in this format: scores = [ {'hotel_id': 1001, 'user_id': 501, 'score': 7}, {'hotel_id': 1001, 'user_id': 502, 'score': 7}, {'hotel_id': 1001, 'user_id': 503, 'score': 7}, {'hotel_id': 2001, 'user_id': 504, 'score': 10}, {'hotel_id': 3001, 'user_id': 505, 'score': 5}, {'hotel_id': 2001, 'user_id': 506, 'score': 5} ] Any given hotel might have more than one score. Implement a function, get_hotels(scores, min_avg_score) that returns a list of hotel ids that have average score equal to or higher than min_avg_score. get_hotels(scores, 5) -> [1001, 2001, 3001] get_hotels(scores, 7) -> [1001, 2001] */
What does the following function do: unsigned int doit(int x) { unsigned int z = 0; while (x &= (x-1)) z++; return z; }
Where is string constants stored in Memory? Ex: char * a = "Hello" ;
Study your entire book from college because all they really care about is algorithms.
write a method to return the duplicate in a integer array
Explain the graphics pipeline in a GPU core.
Reverse a linked list
Showed a struct definition in C and asked its size?
Searching a page in 100 million pages. What data structure would be optimal?
Viewing 2841 - 2850 interview questions