MISSING VALUE Interview Questions

6,572,946 interview questions shared by candidates

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.5
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.5
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?

1. Given a 3 array like below NSArray *a = [1,3,4,5]; NSArray *b = [-1,3,0,9]; NSArray *c = [0,31,32,22,6]; Find the elements from the three array which existing in atleast 2 arrays. Eg: [3, 0] Because 3 is presented in array a, b and 0 is presented in array b, c respectively. -(NSArray)find2ElementsAtleastPresentIn2Arrays:(NSArray*)aList b::(NSArray*)bList c::(NSArray*)cList{ // -- your code here. }
avatar

IOS Developer

Interviewed at Booking.com

4.1
Aug 13, 2015

1. Given a 3 array like below NSArray *a = [1,3,4,5]; NSArray *b = [-1,3,0,9]; NSArray *c = [0,31,32,22,6]; Find the elements from the three array which existing in atleast 2 arrays. Eg: [3, 0] Because 3 is presented in array a, b and 0 is presented in array b, c respectively. -(NSArray)find2ElementsAtleastPresentIn2Arrays:(NSArray*)aList b::(NSArray*)bList c::(NSArray*)cList{ // -- your code here. }

Viewing 2051 - 2060 interview questions

Glassdoor has 6,572,946 interview questions. Prepare for your interview. Get hired. Love your job.