test pass
This commit is contained in:
parent
99c05dbcc2
commit
df495d5568
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ let first data =
|
|||
|| List.equal (fun a b -> a = b) l (List.rev sorted)
|
||||
in
|
||||
let rec adjacent = function
|
||||
| x :: y :: tl -> if Int.abs (x - y) >= 3 then true else adjacent (y :: tl)
|
||||
| x :: y :: tl -> if Int.abs (x - y) > 3 then true else adjacent (y :: tl)
|
||||
| _ :: [] | [] -> false
|
||||
in
|
||||
order l && adjacent l
|
||||
|
|
Loading…
Reference in a new issue