GoogleHashCode2017
GoogleHashCode2017 copied to clipboard
Optimize slicing algoritm, avoiding iterations thru finished start positions
Refactor getAllAvailableSteps so it shud get start positions and output slices. If some start position slice hasn't any available steps and it is valid -> remove this slice from start positions and add it to output.