Deviopath › Go

Group by Length

Medium · Maps

Build map[int][]string grouping words by len. Preserve the order words appear inside each group.

Write GroupByLen(words) that returns that map.

Next: Flatten Once