AlgoMaster Logo

Reverse Nodes in k-Group

values=[1, 2, 3, 4, 5],k=2
0 / 15
algomaster.io
Step:Start: reverse the list in groups of k