Skip to main content
deleted 31 characters in body
Source Link
ZaMoC
  • 24.9k
  • 2
  • 30
  • 81

Wolfram Language (Mathematica), 7544 bytes

And@@(s=#;s~StringContainsQ~#&/@(""<>#&/@Permutations@Union@Characters@s))&Subsequences@#~SubsetQ~Permutations@Union@#&

Try it online!Try it online!

@att saved 31 bytes

Wolfram Language (Mathematica), 75 bytes

And@@(s=#;s~StringContainsQ~#&/@(""<>#&/@Permutations@Union@Characters@s))&

Try it online!

Wolfram Language (Mathematica), 44 bytes

Subsequences@#~SubsetQ~Permutations@Union@#&

Try it online!

@att saved 31 bytes

Source Link
ZaMoC
  • 24.9k
  • 2
  • 30
  • 81

Wolfram Language (Mathematica), 75 bytes

And@@(s=#;s~StringContainsQ~#&/@(""<>#&/@Permutations@Union@Characters@s))&

Try it online!