7 kyu

String Reordering

917 of 7,841user3010812

Description:

The input will be an array of dictionaries.

Return the values as a string-seperated sentence in the order of their keys' integer equivalent (increasing order).

The keys are not reoccurring and their range is -999 < key < 999. The dictionaries' keys & values will always be strings and will always not be empty.

Example

Input:
List = [
        {'4': 'dog' }, {'2': 'took'}, {'3': 'his'},
        {'-2': 'Vatsan'}, {'5': 'for'}, {'6': 'a'}, {'12': 'spin'}
       ]

Output:
'Vatsan took his dog for a spin'
Fundamentals
Strings
Lists

More By Author:

Check out these other kata created by user3010812

Stats:

CreatedMay 22, 2018
PublishedMay 22, 2018
Warriors Trained10197
Total Skips72
Total Code Submissions17294
Total Times Completed7841
Python Completions917
JavaScript Completions6961
Total Stars68
% of votes with a positive feedback rating90% of 624
Total "Very Satisfied" Votes522
Total "Somewhat Satisfied" Votes82
Total "Not Satisfied" Votes20
Total Rank Assessments8
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • user3010812 Avatar
  • Blind4Basics Avatar
  • FArekkusu Avatar
  • trashy_incel Avatar
  • saudiGuy Avatar
Ad