Programming Interview Questions

Sort: Popular Date
Sort: Popular Date

“Number of 1's in binary representation of integer?”

“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.”

“List all anagrams in a file. Assumptions: case-insensitive, a-z characters only, one word per line. For example, if the file contains dog, cat, ddd, goo, act, god -- output dog, god, act, cat”

“Given a string find the first non-repeated character.”

“Given a matrix print it clockwise from the first element to the very inner element.”

“You are given an array with n positive integers where all values in the array are repeated except for one. Return the one that is not repeated.”

“You are given an integer N and an integer M. You are supposed to write a method void findBestCoinsThatMinimizeAverage(int N, int M) that prints the best collection of N coins that minimize the…”

“Assume that you are given the head and tail pointers of a doubly linked list where each node can also have a single child pointer to another similar doubly linked list. There are no cycles in this…”

“Write a program to count the number of words in a file.”

110 of 217 Interview Questions