Meta | E4 | Full Loop | Mostly Reject

Anonymous User
2245
Apr 04, 2024
Apr 05, 2024

Just got done with my full loop, pretty sure I am gonna get a reject but paying it forward to the community which has been very helpful -

Coding Round 1:

  1. Simple Variation of https://leetcode.com/problems/missing-ranges/description/
    If the number of missing numbers is <= 2, append them as a number else, append the range of missing numbers
  2. Return the max consecutive characters in the string:
    Example: "This is a string" -> no char appears consecutively hence return ['T', 'h', 'i','s',.....'i','n',g']
    "Thiss is aa ssttrring" -> ["ss", "aa", "ss", "tt", "rr"]. Note that the output should be in order

Coding round 2:

  1. https://leetcode.com/discuss/interview-question/894401/facebook-phone-find-a-local-minima-in-an-array
    I was prepared for https://leetcode.com/problems/find-peak-element/solutions/ but the twist in the problem threw me off

  2. Design an API getOne(start_idx, end_idx) which will return the number of 1's between the two indices from an array consisting of only 0's and 1's eg: [0,1,1,0,0,0,1,1] The call should be completed in constant time.

    Interviewer was helpful and hinted prefix sum to me but I was not able to code it. https://stackoverflow.com/questions/73742786/how-to-count-the-number-of-1s-in-a-subarray/73742982#73742982

    System Design - design a ride share with some variation

    Just wanna say, these interviews are nerve-wracking. Make sure you really understand the problem and not just memorize them or try to solve them from memory

    I prepared from Meta tagged top 50, but the variations in the actual interview can really throw you off. Best of luck to folks who have their onsite coming up.

Comments (9)