Problem

Sorted 1..n with one missing; return missing (n>=2).

Examples

  • missingInSequence([1, 2, 4]) -> 3
Compile and test (Ctrl+Enter)