Having a function that generates only 0 or 1, write a function that using the above function to generate integer in the range [0, n] with n given, and by giving same chance to all the numbers by calling only that function.
Internship Interview Questions
104,861 internship interview questions shared by candidates
One question they asked me was how to find out if a list was a cycle in O(n) time
Given a string and a word list, find how many words could be find in the string. The characters to form a word in the string is the subsequence, not necessary to be concatenate.
Logical - If you have 9 balls and 1 is defective among them(have more weight) and rest of them are identical to each other. You got one physical balance machine to determine which one it is. So how many steps it would take to get to the answer.
describe a thing that you are proud of
leadership?
A worker is to perform work for you for seven straight days. In return for his work, you will pay him 1/7th of a bar of gold per day. The worker requires a daily payment of 1/7th of the bar of gold. If you were only able to make 2 cuts to the gold bar, describe how this will allow you to pay him 1/7th each day?
I was given a c++ code to read, interpret and determine it output
En quel animal vous réincarneriez-vous ?
Imagine there is on sandwich shop at the campus and it is the only one open. Everywhere else on campus is closed due to construction. Sales are up and profit is down. What three things do you think cause this?
Viewing 481 - 490 interview questions