Skip to content
Advertisement

I need an algorithmic help to convert an input Array object to ArrayList<List> object? [closed]

I need an algorithmic help to convert an input array in Java having this content : {5,6,3,2,4,7}

To this format :
[[2, 3], [3, 4], [4, 5], [5, 6], [6, 7]].

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement