{"id":"lcp-first-element-pivot","text":"`longest_common_prefix` uses `strs[0]` as the reference string and checks all remaining strings against it, avoiding an upfront `min(len(s))` computation","truth_value":"IN","source":"entries/2026/06/06/longest-common-prefix-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"lcp-first-element-pivot","truth_value":"IN","reason":"premise"}]}}