Describe a function to check if an integer is a power of 2.
MISSING VALUE Interview Questions
6,584,562 interview questions shared by candidates
You are the PM of the "share" feature(which people use to share on feed, as a private message etc.). How would you measure success of this feature? What metrics would you use and why? Out of the ones you have mentioned, which is the most important and why? Followup questions: 1) Your team has implemented a change in the "share" and released it for A/B testing, where you realized that there is increase of 20% usage of the feature. would you decide to release it? 2) You have recently released the new feature, and you were informed by all local sites (Facebook sites in each country) that the usage has indeed increased by 20%, but the overall global data shows only 5% increase. How is this possible?
They asked if I had any driving experince
Tell me about a time when you led a project from start to finish
Nothing unexpected, I solved all the problems but I think I was too slow on the first one, which goes like: Given an array of numbers, they are arranged so that the a[0] is in the 1st bucket, a[1]a[2] are in the 2nd bucket, a[3]a[4]a[5] is in the 3rd bucket and so on. The question is then: given a number, you need to return if it is in any bucket or not.
Given a string with parenthesis like "()()(()(()()", check to see if there are matching pairs. If there are matching pairs, return true, else return false. For example, ()()() returns true, ()()()) returns false.
Write an emitter class: /* emitter = new Emitter(); // 1. Support subscribing to events. sub = emitter.subscribe('event_name', callback); sub2 = emitter.subscribe('event_name', callback2); // 2. Support emitting events. // This particular example should lead to the `callback` above being invoked with `foo` and `bar` as parameters. emitter.emit('event_name', foo, bar); // 3. Support unsubscribing existing subscriptions by releasing them. sub.release(); // `sub` is the reference returned by `subscribe` above */
Given an array of arrays which contain characters, find all the arrays with at least one common character and return them as pairs.
Given a list of 4 billion integers, find an integer not in the list using 4MB of memory.
Find Kth smallest element in a BST.
Viewing 3161 - 3170 interview questions