LC 58
Length of Last Word
Easy · LC 1–100
Candidate solution routes
Primary
FreeBinary-Search Boundary / First True
Invariant: The first True always lies in [lo,hi]; indexes left of lo are proven False, while hi remains a feasible candidate.
candidate confidence: 0.468 · metadata_only
How to use this page
Read the statement and constraints first, then validate recognition signals, invariant, and complexity. Candidate score is not correctness evidence.