Write a class that can take in an endless stream of numbers, one integer at a time, can efficiently store the most recent n numbers and report their average in O(1) time.
Software Developer New Grad Interview Questions
711,540 software developer new grad interview questions shared by candidates
Remove the duplicates from an array in place
Write a Square Root function for a computer without floating point calculations
"what do you do if your manager says your code is a piece of sh*t?"
Solve a Kakuro item - Given S - the sum, N - number of slots and P - you can use numbers between 1 - P. You should only use a number once and same numbers are considered as the same solution. Example: S=6, N=2, P=6 Answers: 1. 4,2 2. 5,1 3. 3,3
Given two strings, find if they differ by exactly two letters.
Given a string, return true if after jumbling/rearranging the characters of the string will it be a palindrome. and false if not. eg: given string "evlel", it can be rearranged to "level" and thus it is a palindrome, and return true. eg: 1234 cannot be rearranged to become a palindrome hence false.
Find the max k elements in an unsorted array.
Write a function to tell if three points are colinear.
Write a routine that does secret santa in O(N) time.
Viewing 1501 - 1510 interview questions