Skip to main content
2 of 3
deleted 2 characters in body
roblogic
  • 4k
  • 18
  • 23

Zsh, 58 bytes

Try it Online!

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

Similar to my other anagram solution, again using Zsh's gnarly parameter expansion. Added a few bits to lowercase everything and parse out spaces. Tried to jam everything into one fancy expression but Zsh kept complaining, so I separated out $b to make it work.

roblogic
  • 4k
  • 18
  • 23