User talk:Tonyjv: Difference between revisions

(→‎Sort instead of max in Anagrams: You need max. Why sort?)
Line 13:
 
:How is sorting everything for just the largest value 'better' than just explicitely finding the largest? Isn't the latter more clear? --[[User:Paddy3118|Paddy3118]] 18:14, 20 September 2011 (UTC)
 
Because it is not '''a maximum''' but all maximums, same way as groupby need sorted input to do the same. We want all cases when the maximum is reached and it is done more economically (not tested but by my intuition) by sorting the anagrams by number of anagrams in first place. Then we can do printing out result very economically without full pass of groups (including taking each length again) --[[User:Tonyjv|Tonyjv]] 20:43, 20 September 2011 (UTC)
Anonymous user