Generate a new array from an array of numbers. Start from the beginning. Put the number of some number first, and then that number. For example, from array 1, 1, 2, 3, 3, 1 You should get 2, 1, 1, 2, 2, 3, 1, 1 Write a program to solve this problem.
MISSING VALUE Interview Questions
6,584,562 interview questions shared by candidates
Write a function that takes 2 arguments: a binary tree and an integer n, it should return the n-th element in the inorder traversal of the binary tree.
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 list of 4 billion integers, find an integer not in the list using 4MB of memory.
They asked if I had any driving experince
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.
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?
We can not match your salary expectation. Are you still interested in applying for this position?
Viewing 3181 - 3190 interview questions