Skip to main content
1 of 6
DavidC
  • 25.4k
  • 2
  • 52
  • 105

#Mathematica 89 bytes

r@i_:=StringReplace[i,#->" "]&/@(Complement[y,#]&/@Subsequences[y=Characters@i])//Column

 

r@"abcde"

output

DavidC
  • 25.4k
  • 2
  • 52
  • 105