Skip to content

Commit

Permalink
Fix lonely number problem
Browse files Browse the repository at this point in the history
  • Loading branch information
yangshun committed Oct 9, 2017
1 parent 0516f5e commit ca10d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algorithms/array.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ Arrays
- Given an array, return the length of the longest increasing contiguous subarray.
- E.g., `[1, 3, 2, 3, 4, 8, 7, 9]`, should return `4` because the longest increasing array is `[2, 3, 4, 8]`.
- [Source](http://blog.gainlo.co/index.php/2017/02/02/uber-interview-questions-longest-increasing-subarray/).
- Given an array of integers where every value appears twice except one, find the single, non-repeating value. Do so with a running time of O(1).
- Given an array of integers where every value appears twice except one, find the single, non-repeating value. Follow up: do so with O(1) space.
- E.g., `[2, 5, 3, 2, 1, 3, 4, 5, 1]` returns 4, because it is the only value that appears in the array only once.

0 comments on commit ca10d55

Please sign in to comment.