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 Part - Java #293

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Conversation

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

@Saloni6111 Saloni6111 added the hacktoberfest-accepted contribute for hacktoberfest 2024 label Oct 4, 2024
@Saloni6111 Saloni6111 merged commit 9d4d6b0 into Saloni6111:main Oct 4, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted contribute for hacktoberfest 2024
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants