7 kyu

Sort by Last Char

4,813 of 9,679PG1

Description:

Given a string of words (x), you need to return an array of the words, sorted alphabetically by the final character in each.

If two words have the same last letter, the returned array should show them in the order they appeared in the given string.

All inputs will be valid.

Fundamentals
Strings
Arrays
Sorting

More By Author:

Check out these other kata created by PG1

Stats:

CreatedSep 28, 2016
PublishedSep 28, 2016
Warriors Trained17238
Total Skips570
Total Code Submissions30977
Total Times Completed9679
JavaScript Completions4813
Ruby Completions470
Python Completions3521
Crystal Completions18
Haskell Completions123
Scala Completions282
PHP Completions233
C# Completions307
COBOL Completions5
Rust Completions160
D Completions9
Java Completions8
Total Stars206
% of votes with a positive feedback rating92% of 1500
Total "Very Satisfied" Votes1293
Total "Somewhat Satisfied" Votes170
Total "Not Satisfied" Votes37
Total Rank Assessments10
Average Assessed Rank
7 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • PG1 Avatar
  • GiacomoSorbi Avatar
  • raulbc777 Avatar
  • Quickz Avatar
  • Voile Avatar
  • a.kozhanov Avatar
  • hobovsky Avatar
  • cliffstamp Avatar
  • xavierguihot Avatar
  • ejini战神 Avatar
  • akar-0 Avatar
  • KayleighWasTaken Avatar
Ad