my answer


  • 0
    F

    cat words.txt |tr -s "[:space:]" "\n" |sort |uniq -c| awk '{print $2 " " $1}' |sort -nr -k 2


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.