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 202 characters in body
Source Link
Adnan
  • 44.7k
  • 6
  • 83
  • 248

05AB1E, 6 bytes

Code:

Code:

[Dg#à*

Uses the 05AB1E encoding. Try it online!

Explanation

[Dg# # While the length of the number is not 1
 à # Extract the largest element from the current number
 * # Multiply it with the leftover number

05AB1E, 6 bytes

Code:

[Dg#à*

Uses the 05AB1E encoding. Try it online!

05AB1E, 6 bytes

Code:

[Dg#à*

Uses the 05AB1E encoding. Try it online!

Explanation

[Dg# # While the length of the number is not 1
 à # Extract the largest element from the current number
 * # Multiply it with the leftover number
Source Link
Adnan
  • 44.7k
  • 6
  • 83
  • 248

05AB1E, 6 bytes

Code:

[Dg#à*

Uses the 05AB1E encoding. Try it online!

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