LeetCode Question · Apr 2022 · London

Meta | London | Phone Screening April 2022

8 upvotes 1,558 views 3 replies

Question Details

Question 1: In an array of elements find maximum number and return a random number if they maximum has multiple occurences. Example: Input: [0,-3,5,7,8,8,2,6,8} Output: Random number with equal probability from index 4,5,8 To be...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Arrays Probability Stats Strings