Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array Chunk #8

Open
xasterKies opened this issue Oct 31, 2021 · 3 comments
Open

Array Chunk #8

xasterKies opened this issue Oct 31, 2021 · 3 comments
Assignees
Labels
challenge Daily Challenge Intermediate Intermdiate coding problem

Comments

@xasterKies
Copy link
Collaborator

Directions

Given an array and chunk size, divide the array into many where the subarray is of length size .Make use of functions and methods where necessory

You can code this with any language of you choice!

Examples

chunk([ 1, 2, 3, 4], 2) -----> [ [ 1, 2 ], [ 3, 4 ] ]
chunk([ 1, 2, 3, 4, 5 ], 2) -----> [ [ 1, 2 ], [ 3, 4 ], [5] ]
chunk([ 1, 2, 3, 4, 5, 6, 7, 8 ], 3) -----> [ [ 1, 2, 3], [ 4, 5, 6 ], [7, 8] ]
chunk([ 1, 2, 3, 4, 5 ], 4) -----> [ [ 1, 2 , 3, 4 ], [5] ]
chunk([ 1, 2, 3, 4, 5 ], 10) -----> [ 1, 2 , 3, 4, 5 ]

@xasterKies xasterKies added challenge Daily Challenge Intermediate Intermdiate coding problem labels Oct 31, 2021
@xxxSkypper
Copy link
Contributor

please assign me

@Blanco237
Copy link

Assign me please

@xasterKies
Copy link
Collaborator Author

Done @Blanco237

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
challenge Daily Challenge Intermediate Intermdiate coding problem
Projects
None yet
Development

No branches or pull requests

3 participants