Type the real implementation in Java or Python, then diff your solution against the canonical one.
You get the problem statement and a plain editor with no autocomplete or test runner. When you finish, the canonical implementation appears beside yours to compare structure, edge-case handling, and complexity. Cards are scheduled with spaced repetition: missed cards return sooner, and known cards space out.