Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

added 77 characters in body
Source Link
MarcMush
  • 6.9k
  • 15
  • 18

Julia 1.0, 93(削除) 93 (削除ここまで) 92 bytes

l->sort(l,by=x->findlast.(collect(x)i for i=x,"CcJOoSsUabDdefGghjLlnPpQqrTtuVvXxyABFHIiKkNRYZzEMmWw"))

Try it online!

works with Julia > 1.3

uses as input and output a list of the words

based on this answer by @Noodle9

Try it online! edit: replace collect(x) with i for i=x (-1 byte)

Julia, 93 bytes

l->sort(l,by=x->findlast.(collect(x),"CcJOoSsUabDdefGghjLlnPpQqrTtuVvXxyABFHIiKkNRYZzEMmWw"))

works with Julia > 1.3

uses as input and output a list of the words

based on this answer by @Noodle9

Try it online!

Julia 1.0, (削除) 93 (削除ここまで) 92 bytes

l->sort(l,by=x->findlast.(i for i=x,"CcJOoSsUabDdefGghjLlnPpQqrTtuVvXxyABFHIiKkNRYZzEMmWw"))

Try it online!

works with Julia > 1.3

uses as input and output a list of the words

based on this answer by @Noodle9

edit: replace collect(x) with i for i=x (-1 byte)

Source Link
MarcMush
  • 6.9k
  • 15
  • 18

Julia, 93 bytes

l->sort(l,by=x->findlast.(collect(x),"CcJOoSsUabDdefGghjLlnPpQqrTtuVvXxyABFHIiKkNRYZzEMmWw"))

works with Julia > 1.3

uses as input and output a list of the words

based on this answer by @Noodle9

Try it online!

AltStyle によって変換されたページ (->オリジナル) /