{"id":"lhs-counter-based-linear","text":"`findLHS` runs in O(n) time and O(n) space via a single `Counter` construction and one pass over distinct keys","truth_value":"IN","source":"entries/2026/06/06/longest-harmonious-subsequence-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"lhs-counter-based-linear","truth_value":"IN","reason":"premise"}]}}