Meta E5 Phone screen
Anonymous User
22

Location: Menlo Park, CA
Status: Rejected

  1. Finding the K Closest Points to the Origin:
    Problem: Given an array of points in a 2D plane and an integer k, return the k closest points to the origin (0,0).
    LeetCode Problem: 973.
    https://leetcode.com/problems/k-closest-points-to-origin/description/

  2. Finding the Median in a Sliding Window:
    Problem: Given an array of numbers and a sliding window size k, find the median of each window as it slides from left to right.
    LeetCode Problem: 480.
    https://leetcode.com/problems/sliding-window-median/description/

Comments (1)