We each flip three fair coins. I offer to pay you $1 if we do not get the same amount of heads, if you agree to pay me $2 if we do (get the same amount of heads). Will you agree to play this game?
Internship Interview Questions
104,772 internship interview questions shared by candidates
- Given a linked list, go to the middle and reverse the second half of the list - Rotate the matrix 90 degrees
How can you benefit from pepsico offering you ?
Describe an algorithm that will take in a large input of English words that may contain duplicate. Then return only unique words from the input.
Why you chose tesla for an internship
Given an array of character you must delete all the characters that got repeated 3 or more times consecutively and add '0' in the end of the array for every deleted character Example: "aabbbbcdddee" -> "aacee0000000" "22221" ->"00001 " The problem must be solved in: O(1) memory O(n) time And you can't overwrite a cell in the array more than once.
Tell about yourself.
Given a value in a binary search tree, write an algorithm that returns the next greatest value. The tree is assumed to contain the given value.
2nd ques- add if the numbers are of any base ..
Talk about yourself
Viewing 11 - 20 interview questions