Status: IN
detectCapitalUse accesses word[0] without a length check and will raise IndexError on empty input, relying on LeetCode's guarantee that len(word) >= 1.
Source: entries/2026/06/06/detect-capital-solution.md
JSON