Retired

Merge 2 sorted iterators (retired)

Description:

Given 2 Iterator objects of sorted collections produce sorted List with combined contents. Original sources are sorted with a Comparator object that is also given.

Constraints

  • original sources are sorted in ascending order
  • original sources can be of different size
  • any of original sources may be empty (Iterator may immediately return false on .hasNext() call)
  • original sources have max of 10000 elements
  • all elements are not null
Lists
Sorting
Iterators

More By Author:

Check out these other kata created by blr_Oliver

Stats:

CreatedFeb 22, 2023
Warriors Trained11
Total Skips0
Total Code Submissions12
Total Times Completed8
Java Completions8
Total Stars0
% of votes with a positive feedback rating33% of 6
Total "Very Satisfied" Votes1
Total "Somewhat Satisfied" Votes2
Total "Not Satisfied" Votes3
Total Rank Assessments7
Average Assessed Rank
7 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • blr_Oliver Avatar
Ad