All solution functions assume valid input per the LeetCode problem constraints and perform no input validation — no type checks, no bounds guards, no try/except. Invalid inputs produce undefined behavior (typically `ValueError`, `IndexError`, or infinite loops) rather than informative errors.