Coding Interview Questions

Sort: Popular Date
Sort: Popular Date

“Implement a function to validate whether a given binary tree is a BST (i.e. write an isBST() function).”

1 of 1 found helpful

“Write a function that divides two numbers without using the divide '/' operator.”

“Write a function that takes 2 arguments: a binary tree and an integer n, it should return the n-th element in the inorder traversal of the binary tree.”

“You are a parking lot attendant in a lot that has one open spot, and you want to move the cars from their original positions into a new arrangement. Create a program that will print out instructions...”

“Given a list of integers, some of which may be negative, extract the pair that sums to the largest number.”

“Initialize a 5 by 5 array with this sequence. 1 2 3 4 5 6 4 8 9 10 11 12 9 14 15 16 17 18 16 20 21 22 23 24 25”

“Suppose you have a matrix of numbers. How can you easily compute the sum of any rectangle (i.e. a range [row_start, row_end, col_start, col_end]) of those numbers? How would you code this?”

“Look for a string in a very long string - a needle in a haystack. Write the program in pseudo-code.”

“I am playing a card game called 24. Cards ace to king are numbered 1 to 13. During a given round, I am provided four cards to play with from the shuffled pack. If the numbers from the four cards...”

“Extract the N largest floating point numbers from a large file of floating point numbers.”

110 of 73 Interview Questions