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

deleted 377 characters in body
Source Link

Japt -g, 11(削除) 14 11 (削除ここまで)10 bytes

-2 bytes from @Shaggy

á m¬ñn
íUÅw

Some sort of explanation

á m¬ñn
ïUÅw Full Program. Implicit input U
á Unique permutations 
 m¬ Join each 
 ñn Convert to decimal and sort 
 Implicit reassign U 
í Pair with:
 UÅ Copy U
 w Reversed
 Implicit Output first combinationgJò

Try it online! Try it online!

Japt -g, 11 bytes

-2 bytes from @Shaggy

á m¬ñn
íUÅw

Some sort of explanation

á m¬ñn
ïUÅw Full Program. Implicit input U
á Unique permutations 
 m¬ Join each 
 ñn Convert to decimal and sort 
 Implicit reassign U 
í Pair with:
 UÅ Copy U
 w Reversed
 Implicit Output first combination

Try it online!

Japt, (削除) 14 11 (削除ここまで)10 bytes

á m¬ñn gJò

Try it online!

added 346 characters in body
Source Link

Japt -g, 11 bytes

-2 bytes from @Shaggy

á m¬ñn
íUÅw

Some sort of explanation

á m¬ñn
ïUÅw Full Program. Implicit input U
á Unique permutations 
 m¬ Join each 
 ñn Convert to decimal and sort 
 Implicit reassign U 
í Pair with:
 UÅ Copy U
 w Reversed
 Implicit Output first combination

Try it online!

Japt, 11 bytes

-2 bytes from @Shaggy

á m¬ñn
ïUÅw

Try it online!

Japt -g, 11 bytes

-2 bytes from @Shaggy

á m¬ñn
íUÅw

Some sort of explanation

á m¬ñn
ïUÅw Full Program. Implicit input U
á Unique permutations 
 m¬ Join each 
 ñn Convert to decimal and sort 
 Implicit reassign U 
í Pair with:
 UÅ Copy U
 w Reversed
 Implicit Output first combination

Try it online!

added 25 characters in body
Source Link

Japt, 1311 bytes

-2 bytes from @Shaggy

á m¬ñn
ï gUÊÉïUÅw

Try it online! Try it online!

Japt, 13 bytes

á m¬ñn
ï gUÊÉ

Try it online!

Japt, 11 bytes

-2 bytes from @Shaggy

á m¬ñn
ïUÅw

Try it online!

deleted 82 characters in body
Source Link
Loading
Source Link
Loading

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