Providing an algorithm for combinations(n, k), not because of it's complexity, just because it took my the majority of the interview to understand that this was the problem I was solving - it was not made very clear at all.
Engineers Interview Questions
843,412 engineers interview questions shared by candidates
Given a really big file with a lots of Facebook posts, find the ten most used words.
Display the sorted output of a merge of any number of sorted arrays. Then do it again, more efficiently.
SQL - Between "Medium" and "Hard" on Leetcode. They expect you to know all of your JOINs, as well as subquerying and partition windows. Python - Around "Medium" on Leetcode. Mostly around data structures.
Create a class implementing iterator interface to go through AVL tree.
Given a 2D array of letters, return whether a given word can be found in the grid. To make a word, you can use any adjacent character next to the character you're currently on in the word. But you cannot use the same grid index twice i.e. in a 2x2 array, you could find a 4 letter word by visiting each letter once
5 bags, each bag has some balls. 1 bag has faulty balls. There are faulty balls weighing 1.1kg and good ones weighing 1kg. There is a weighing machine. Determine in how many measurements can you find the bag with faulty balls and which bag contains it.
1. If the input number is 4 return 7 and if input number is 7 return 4 without using if condition or switch statements. 2. Given a number, return the index of the first occurrence of bit 1. 3. There are 2 given linked lists, add them and store the result in result linked list Ex: l1:9->5->9 l2:4->6 result:1->0->2->3 4. Tell me about yourself
Given an array of integers, return true if there are contiguous numbers such that they add up to a specific target. For eg: [6,1,2,3,3,7] target sum is 8, will return true because 2,3,3 adds up to 8 and are contiguous. [6,1,2,4,3,3,7] will return false as there are no contiguous elements which adds up to 8.
How would you implement a game that you throw five dices and the values are in an array and return true if the array has 4 consecutive number
Viewing 2551 - 2560 interview questions