Skip to content

Given an array of integers and an integer k, your task is to reverse the sub-arrays of size k inside the given array. For example, If array is {1,2,3,4,5,6,7,8,9} and k =3, then the output array is {3,2,1,6,5,4,9,8,7} i.e. Each sub-array of size 3 is reversed.

Notifications You must be signed in to change notification settings

rhea0110/Reverse-an-array-in-groups

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Reverse-an-array-in-groups

Given an array of integers and an integer k, your task is to reverse the sub-arrays of size k inside the given array. For example, If array is {1,2,3,4,5,6,7,8,9} and k =3, then the output array is {3,2,1,6,5,4,9,8,7} i.e. Each sub-array of size 3 is reversed.

About

Given an array of integers and an integer k, your task is to reverse the sub-arrays of size k inside the given array. For example, If array is {1,2,3,4,5,6,7,8,9} and k =3, then the output array is {3,2,1,6,5,4,9,8,7} i.e. Each sub-array of size 3 is reversed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published