Hardest question was how to sort a linked list using recursion only. I knew the iterative solution but couldn't come up with recursion. Very difficult.
Development Interview Questions
137,390 development interview questions shared by candidates
You are given two buckets. One holds 3 gallons and the other holds 5 gallons. Have do you make 4 gallons of water?
how much memory is int[3000][3000] in bytes and then in MB's. should this size of memory be allocated or static?
Given an int array and an int X, find out if two elements sum up to X
Display the first 3 character of a word(string)
implement atoi
Graph Coloring problem: given a connected graph, color each node in the graph such that no two adjacent nodes have the same color.
Consider two arrays of integers, v1 and v2, with allocate memory of (n+m)*sizeof(int) and m*sizeof(int), respectively; In array v1, you have the first n positions filled with integers, sorted in ascendent order. In array v2, you have all m positions filled with integers, also sorted in ascendent order. Write/implement a function that return a vector of size (n+m)*sizeof(int) that have all the elements of v1 and v2, sorted in an ascendent order
Different Sorting Algorithms and Big O of each
Write a function that checks if a number's divisors sum up to that number, i.e. whether it's a perfect number or not.
Viewing 881 - 890 interview questions