6 kyu

Sort only integers in Nested List

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

Stats:

CreatedJan 2, 2018
PublishedJan 2, 2018
Warriors Trained692
Total Skips13
Total Code Submissions955
Total Times Completed201
Python Completions201
Total Stars24
% of votes with a positive feedback rating97% of 77
Total "Very Satisfied" Votes72
Total "Somewhat Satisfied" Votes5
Total "Not Satisfied" Votes0
Total Rank Assessments4
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • jamad Avatar
  • Blind4Basics Avatar
  • saudiGuy Avatar
Ad