tulika-99 / DS_Algorithms

A collection of various Algorithms for Data Structures in different languages. HacktoberFest 2020-22 :octocat:
24 stars 124 forks source link

reverse-an-array-in-groups-of-given-size #170

Closed Kritika6100 closed 3 years ago

Kritika6100 commented 3 years ago

fixes #168 Please merge this

Kritika6100 commented 3 years ago

Ok I will do the changes

Kritika6100 commented 3 years ago

Given an array arr[] of positive integers of size N. Reverse every sub-array group of size K. K = 3 arr[] = {1,2,3,4,5} Output: 3 2 1 5 4