Daily challenge for 2026-08-16
593. Recent File Access
You are given an array of string files representing files accessed in sequence. You want to maintain a list of recently accessed files, but you only care about the last time each file was accessed. Return a list of unique files in the order they were most recently accessed, from oldest to newest.
Example:
Input: files = ["a", "b", "a", "c"]
Output: ["b", "a", "c"]
Explanation: "a" was accessed again, so its most recent access is later than "b".
Run this challenge interactively in Python or JavaScript when the app loads.