{"id":"kth-distinct-preserves-insertion-order","text":"The second pass iterates `arr` in its original order, so \"kth distinct\" respects the position strings first appear, not alphabetical or any other ordering.","truth_value":"IN","source":"entries/2026/06/06/kth-distinct-string-in-an-array-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"kth-distinct-preserves-insertion-order","truth_value":"IN","reason":"premise"}]}}