Talk:Sort the letters of string in alphabetical order: Difference between revisions
Talk:Sort the letters of string in alphabetical order (view source)
Revision as of 16:27, 26 July 2021
, 2 years ago→For this task it is not necessary to perform a sort!
(→task usage of alphabetical order: Commented on sort order.) |
|||
Line 44:
==For this task it is not necessary to perform a sort!==
Given the alphabet as an ordered list of characters. Pass through the string once counting the number of occurrences of each character. Pass through the alphabet once outputting the corresponding character the appropriate number of times.--[[User:Nigel Galloway|Nigel Galloway]] ([[User talk:Nigel Galloway|talk]]) 14:44, 26 July 2021 (UTC)
:Fair point but (not that this task merits such attention to detail) I wonder what the output of "baNAnaBAnaNA" should be... --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 16:26, 26 July 2021 (UTC)
== Slacksort ==
|