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

Split Linked List in Parts #268

Closed
KamakshiOjha opened this issue Oct 3, 2024 · 0 comments
Closed

Split Linked List in Parts #268

KamakshiOjha opened this issue Oct 3, 2024 · 0 comments
Assignees
Labels
DSA Hacktoberfest contribute for hacktoberfest 2024

Comments

@KamakshiOjha
Copy link
Contributor

Description : Given the head of a singly linked list and an integer k, split the linked list into k consecutive linked list parts.

The length of each part should be as equal as possible: no two parts should have a size differing by more than one. This may lead to some parts being null.

The parts should be in the order of occurrence in the input list, and parts occurring earlier should always have a size greater than or equal to parts occurring later.

Return an array of the k parts.

Language : JAVA

PLEASE ASSIGN THIS ISSUE TO ME UNDER HACKTOBERFEST 2024

@Saloni6111 Saloni6111 added Hacktoberfest contribute for hacktoberfest 2024 DSA labels Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DSA Hacktoberfest contribute for hacktoberfest 2024
Projects
None yet
Development

No branches or pull requests

2 participants