Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
7
Task/Anagrams/PascalABC.NET/anagrams.pas
Normal file
7
Task/Anagrams/PascalABC.NET/anagrams.pas
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
begin
|
||||
var s := System.Net.WebClient.Create.DownloadString('http://wiki.puzzlers.org/pub/wordlists/unixdict.txt');
|
||||
var words := s.Split;
|
||||
var groups := words.GroupBy(word -> word.Order.JoinToString);
|
||||
var maxCount := groups.Max(gr -> gr.Count);
|
||||
groups.Where(gr -> gr.Count = maxCount).PrintLines;
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue