Skip to main content
3 of 3
-7
roblogic
  • 4k
  • 18
  • 23

Zsh, 51 bytes

Try it Online!

g()<<<${(j::)${(os::)1:l}// }
<<<${$(g $1)/$(g $2)}

Similar to my other anagram solution, again using Zsh's gnarly parameter expansion. Added a few bits to lowercase everything and parse out spaces.

roblogic
  • 4k
  • 18
  • 23