Algorithm · Roblox · Medium
Problem Design a tracker for the running earnings of named experiences—such as games, features, or events—on a large online platform. The tracker must handle two operation kinds. An update changes one experience's accumulated earnings, while a query asks which experience currently has the greatest total. You are given three arrays of the same length, n: operations, experiences, and deltas. Every entry in operations is either "U" (update) or "Q" (query). When operations[i] is…
Checking your access…