new files
This commit is contained in:
parent
3af7344581
commit
86c034bb8b
1364 changed files with 21352 additions and 0 deletions
7
Task/Anagrams/Smalltalk/anagrams-1.st
Normal file
7
Task/Anagrams/Smalltalk/anagrams-1.st
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
list:= (FillInTheBlank request: 'myMessageBoxTitle') subStrings: String crlf.
|
||||
dict:= Dictionary new.
|
||||
list do: [:val|
|
||||
(dict at: val copy sort ifAbsent: [dict at: val copy sort put: OrderedCollection new])
|
||||
add: val.
|
||||
].
|
||||
sorted:=dict asSortedCollection: [:a :b| a size > b size].
|
||||
Loading…
Add table
Add a link
Reference in a new issue