You are viewing a single comment's thread. Return to all comments →
Hi, you can refer to other people' submission if still stuck. BTW, you are using nub whose complexity is O(N2). I personally prefer map head. group. sort, which is of O(N logN).
nub
map head. group. sort
Seems like cookies are disabled on this browser, please enable them to open this website
Filter Elements
You are viewing a single comment's thread. Return to all comments →
Hi, you can refer to other people' submission if still stuck.
BTW, you are using
nub
whose complexity is O(N2). I personally prefermap head. group. sort
, which is of O(N logN).