Write a function for r and 5() that returns a random int between 0 and 5, implement r and 7 ()
Out of 10 coins, one weighs less then the others. You have a scale. How will you determine which one weighs less in 4 weighs? How will you determine the above question, if you didn’t know whether the odd coin weighs less or more?
The probability of a car passing a certain intersection in a 20 minute windows is 0.9. What is the probability of a car passing the intersection in a 5 minute window? (Assuming a constant probability throughout)
Two software engineers from Google’s Pittsburgh office deliver a presentation on how to prepare for technical interviews in this Hangout on Air from October 9, 2012. The rundown menu is at the bottom. Head over to http://goo.gl/xSD7jo to learn more about how we hire and to find your role with us. 0:00 – Introductions 0:59… Read More »
Write a function that will find a missing or duplicated number in an array.
Write code to generate all possible combinations of ‘r’ elements in a given array of size ‘n’?
What method can be used to pick or remove any given character from a string?
How will you find out the longest palindrome in a given string.
How will you find the depth of a binary tree?
What code will you write to check if a number is power of two or not?