MISSING VALUE Interview Questions

6,584,562 interview questions shared by candidates

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.
avatar

Software Engineer Intern

Interviewed at Meta

3.4
Sep 21, 2011

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.

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.
avatar

Software Engineer

Interviewed at Meta

3.4
Dec 6, 2013

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.

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 */
avatar

Front End Engineer

Interviewed at Meta

3.4
Nov 17, 2016

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 */

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?
avatar

Product Manager

Interviewed at Meta

3.4
Feb 13, 2020

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?

Viewing 3181 - 3190 interview questions

Glassdoor has 6,584,562 interview questions. Prepare for your interview. Get hired. Love your job.