You have an array of length n consisting of the integers from 0 through n-1 exactly once each, except for one which is missing. Find the missing number. The numbers can be in any order.
Software Development Engineer Interview Questions
32,835 software development engineer interview questions shared by candidates
given an unsigned char array, find if there is a subarray whose elements sum up to a given value
Most of the technical questions, I felt very prepared for. The most difficult questions were behavioral. In particular, "Tell me about an experience where a project partner enjoyed working with you." Rather than talking about your skills you have to talk about how you worked well with others in a way that they enjoyed working with you, and do so without coming off as being arrogant. Also, they didn't ask the question directly, but came to it in a way that put you on the back foot. The question immediately before was to tell them about a time that you had difficulty working with a partner, and also about a time that a partner had difficulty working with you.
Remove all characters of a string from another string. The algorithm should be less than O(m*n) where m & n are lengths of strings and the space used should be less than O(m+n).
How to test a clock
Given a balance and marbles where one marble weighs more than the other, how many times do you have to use the balance to find the heaviest marble for 7 marbles. Then, extend that answer to how many marbles can you weigh with 4 tries.
How to come out of a maze given that you can move one step at a time and you cannot turn left.
2nd question: 250 points. Smart Assembly Language Given a program compile it and print its output to STDOUT. The given language has 8 types of statements: ECHO 1 => prints the given number to STDOUT. Eg: ECHO 1 prints 1 to STDOUT EXIT => exits the program SET a 0 => assign variable a value 0, i.e. equivalent to a = 0 ADD 1 2 b => add 1(first) and 2(second) and assign its value to b(third), equivalent to b = 1 + 2. Value 3 will be assigned to variable b GOTO and LABEL LABEL 12 <statement> <statement> <statement> GOTO 12 The GOTO statement jumps to corresponding LABEL (defined by argument). The LABEL can occur either before or after GOTO statement. IF and END IF a 10 <statement> <statement> <statement> END If a(first argument) is equal to 10(second argument) then only statements between IF and END will be executed otherwise they will bot be executed. CONTINUE IF a 10 <statement> <statement> CONTINUE <statement> END CONTINUE is used inside IF END block. CONTINUE jumps to the corresponding IF statement of the block. Note: All arguments are whole numbers only. Variables names can only consist alphabetic[a-z] characters. All variables are intially 0. You don't need to SET a variable before using it. Example 1 Input SET a 0 LABEL 100 ADD a 1 a ECHO a IF a 5 EXIT END GOTO 100 Output 1 2 3 4 5 Example 2 Input SET a 1 SET b 2 SET goal 5 SET flag 0 IF flag 0 ADD a b c IF a goal ADD a a a SET flag 1 END ECHO a SET a b SET b c CONTINUE END Output 1 2 3 10
Trapping Rain Water problem in Leetcode. Collect water in between the various pillars provided in a consecutive array.
Write a program to remove vowels from a given string
Viewing 451 - 460 interview questions