#181. scoresClump
scoresClump
Background
Description
Given an array of scores sorted in increasing order, return true if the array contains 3 adjacent scores that differ from each other by at most 2, such as with {3, 4, 5} or {3, 5, 5}.
Format
Input
Output
Samples
[3 4 5]
true
[3 4 6]
false
[1 3 5 5]
true
Limitation
1s, 1024KiB for each test case.