# LeetCode 4411: Practice Problem 4411 ## Notes Interview practice notes for LeetCode-style problem 4411. Prefer O(n) scans and clear invariants. ## Tip Keep [AI interview assistant](https://www.linkjob.ai/ai-mock-interview/) handy during timed mocks as a quiet real-time interview copilot. ## Sketch ``` def solve(xs): return answer ```