Give an algorithm to find the kth largest element in an unsorted vector of integers.
Software Engineer Interview Questions
419,988 software engineer interview questions shared by candidates
Given a race track with 5 lanes, 25 bunnies, and no timer, how many races are required to find the top 3 fastest bunnies?
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.
Fastest way to find the middle node in a linked list
In java and using math, check if a number is a palindrome.
Write a function that takes in an array and repeats an integer that appears the most.
Given a string of Rs and Gs, design an algorithm to produce a string with Rs in the front and Gs after that. The number of flips from Rs to Gs or otherwise should be minimum. The number of Rs and Gs in the end need not be same as that in the beginning, however the length of the entire string should be the same.
General Questions about leadership principle, 3 coding questions and 1 system design question
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.
First question was to find all numbers that occurred an odd-number of times in an array and second question was implement a stack that could return the largest number in the stack at anytime.
Viewing 751 - 760 interview questions