Goto Largest Bucket
Asked at Databricks · Coding & Leetcode-style Questions · Difficulty: Easy
Imagine you're navigating through a file system that has several storage compartments, each with a unique name—let's call them "buckets." You can move between these buckets and create files within them. Your task is to follow a series of commands and, at the end of the day, determine which bucket ended up holding the most files.
Loading the problem…