Plaid Interview Questions
Showing 2 questions
Find the k points closest to the origin (0, 0) from a given list of points on a 2D plane. The distance is measured using the Euclidean distance.
#1. K Closest Points to Origin
Given a grid representing land and water, count the number of distinct islands. An island is formed by connected land cells.
#2. Number of Islands