{"id":"largest-squares-at-array-extremes","text":"In a sorted array with negatives, the largest-magnitude elements (and thus largest squares) are always at the two ends, which is the invariant the two-pointer approach exploits","truth_value":"IN","source":"entries/2026/06/06/squares-of-a-sorted-array-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"largest-squares-at-array-extremes","truth_value":"IN","reason":"premise"}]}}