key point is:while(miss <= n)
trap is:n <= 2^31 - 1(Long) miss = 1;
https://leetcode.com/problems/patching-array/
CleverLibre Social is an inclusive social instance for open discussion, learning, and community. All cultures welcome. Hate speech and harassment strictly forbidden.