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 - Fork 0
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.
rhea0110/Reverse-an-array-in-groups
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
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 0
No packages published