What is an easy way to tell if a list of words are anagrams of each other?

前端 未结 10 1980
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-03 18:38

How would you list words that are anagrams of each other?

I was asked this question when I applied for my current job.

orchestra can be rearrang

10条回答
  •  再見小時候
    2020-12-03 19:26

    Sort the letters and compare (letter by letter, string compare, ...) is the first things that comes to mind.

提交回复
热议问题