kth-distinct-linear-time

Status: IN

`kth_distinct` is O(n) time and O(n) space: one pass to build the Counter, one pass to scan for the kth unique element.

Source: entries/2026/06/06/kth-distinct-string-in-an-array-solution.md

JSON