0
Given a list of positive digits, return that list with consecutive elements grouped together. For example:
[1, 2, 3, 5, 6, 5, 4, 4, 1] -> [[1, 2, 3], [5, 6, 5, 4], [4], [1]]
Essentially, all adjacent elements whose absolute difference is 1 should be grouped together.
The input array will only ev...