solutions-trust-leetcode-preconditions

Status: IN

Solutions across this repo do not validate inputs against problem constraints — they trust the caller to satisfy LeetCode guarantees (non-empty arrays, valid ranges, majority existence). Invalid inputs produce silent wrong answers rather than exceptions.

Source: entries/2026/06/06/majority-element-solution.md

Depended on by

JSON