Closed saqib-vm1 closed 1 year ago
My approach for Q1 Reverse array in groups
Run a loop for the 'number of groups' times. Run a nested loop for each group to reverse the group.
// To reverse the group we can swap elements // first with last element and second with second last element and so on.. // for that we only need to run the loop for half times the length of the group.
close #56
solution for the issue close #56