Skip to content

Conversation

Priyanshu1303d
Copy link
Contributor

@Priyanshu1303d Priyanshu1303d commented Oct 6, 2025

This pull request adds an implementation for the Flattening a Multilevel Linked List.

The problem involves a linked list where each node has a next pointer and a child pointer. The child pointer points to a separate, sorted linked list. This algorithm recursively merges these lists into a single, fully sorted list connected by the child pointers.


  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new code is formatted correctly.

This submission includes:
FlattenMultilevelLinkedList.java: The core implementation.
FlattenMultilevelLinkedListTest.java: A corresponding set of unit tests to ensure correctness.

All local tests pass successfully.

@codecov-commenter
Copy link

codecov-commenter commented Oct 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.78%. Comparing base (9484c7e) to head (b3a93bd).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6670      +/-   ##
============================================
+ Coverage     75.75%   75.78%   +0.03%     
- Complexity     5772     5780       +8     
============================================
  Files           703      704       +1     
  Lines         19777    19798      +21     
  Branches       3832     3834       +2     
============================================
+ Hits          14982    15004      +22     
  Misses         4215     4215              
+ Partials        580      579       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Priyanshu1303d Priyanshu1303d force-pushed the feat/FlattenMultilevelLinkedList branch from 2bd3805 to b3a93bd Compare October 6, 2025 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants