Module FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad NameLoad Assign NameStore Dict For NameStore Call NameLoad Call NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr Call NameLoad SubscriptLoad NameLoad Index NameLoad If CompareIn NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad ListLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body If CompareGt Call NameLoad SubscriptLoad NameLoad Index NameLoad Num body Expr Call AttributeLoad NameLoad attr ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list
N/A anagrams N/A N/A w N/A N/A N/A group a list of words into anagrams

    :param w: list of strings
    :returns: list of lists

    :complexity:
        :math:`O(n k \log k)` in average, for n words of length at most k.
        :math:`O(n^2 k \log k)` in worst case due to the usage of a dictionary.
     N/A w N/A list N/A set w N/A d N/A N/A i N/A range N/A len w N/A N/A s N/A N/A join N/A sorted N/A w N/A i N/A N/A s d N/A N/A N/A N/A N/A d N/A s append i N/A N/A N/A d N/A s N/A i N/A reponse N/A N/A s d N/A N/A N/A N/A len N/A d N/A s 1 N/A N/A N/A N/A reponse append N/A N/A w N/A i N/A i N/A d N/A s N/A reponse N/A