use bit operations to write a function that will determine if a number is a power of 2
Software Engineer Interview Questions
466,586 software engineer interview questions shared by candidates
compress strings such as "aaabbbcccc" into the string "a3b3c4"
Given an unsorted array, extract the max and min value using the least number of comparison.
Business case.
Fastest way to find the middle node in a linked list
In java and using math, check if a number is a palindrome.
Asked to write a method were it's passed an array of numbers and a single number. I needed to return true if there was two numbers in the array that if added totaled the single number. I was then asked to rewrite it to make it run faster.
Give an algorithm to find the kth largest element in an unsorted vector of integers.
Was asked a very interesting tree problem.Given a tree and a number N, construct another tree such that each node of the tree has either 0 or N elements,except for one node which has between 0 to N elements.Only other constraint is that ancestry is preserved in the new tree.
Given a race track with 5 lanes, 25 bunnies, and no timer, how many races are required to find the top 3 fastest bunnies?
Viewing 721 - 730 interview questions