6 kyu
Sort only integers in Nested List
201jamad
Description:
You get some nested lists. Keeping the original structures, sort only elements (integers) inside of the lists. In other words, sorting the intergers only by swapping their positions.
Example
Input : [[[2, 1], [4, 3]], [[6, 5], [8, 7]]]
Output : [[[1, 2], [3, 4]], [[5, 6], [7, 8]]]
Note: The structures of the lists are regular (symmetrical) and their depths are 3.
Fundamentals
Algorithms
Sorting
Similar Kata:
Stats:
Created | Jan 2, 2018 |
Published | Jan 2, 2018 |
Warriors Trained | 692 |
Total Skips | 13 |
Total Code Submissions | 955 |
Total Times Completed | 201 |
Python Completions | 201 |
Total Stars | 24 |
% of votes with a positive feedback rating | 97% of 77 |
Total "Very Satisfied" Votes | 72 |
Total "Somewhat Satisfied" Votes | 5 |
Total "Not Satisfied" Votes | 0 |
Total Rank Assessments | 4 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 7 kyu |