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 5 characters in body
Source Link
Mukundan314
  • 13.7k
  • 1
  • 19
  • 62

Pyth, 4 bytes

v.>z

Try it online!

Explanation

v.>zQ
 Q : first line of input evaluated 
 z : second line of input as string
 .> : cyclically rotate second line right by number in first line
v : evaluate to will remove leading 0s

Pyth, 4 bytes

v.>z

Try it online!

Explanation

v.>zQ
 Q : first line of input evaluated 
 z : second line of input as string
 .> : cyclically rotate second line right by number in first line
v : evaluate to will remove leading 0s

Pyth, 4 bytes

v.>z

Try it online!

Explanation

v.>zQ
 Q : first line of input evaluated 
 z : second line of input as string
 .> : cyclically rotate second line right by number in first line
v : evaluate to remove leading 0s
deleted 2 characters in body
Source Link
Mukundan314
  • 13.7k
  • 1
  • 19
  • 62

Pyth, 4 bytes

v.>z

Try it online!

Explanation

v.>zQ
 Q : first line of input evaluated 
 z : second line of input as string
 .> : cyclically rotate second line right by number in first line
v : evaluate thatto will remove leading 0s

Pyth, 4 bytes

v.>z

Try it online!

Explanation

v.>zQ
 Q : first line of input evaluated 
 z : second line of input as string
 .> : cyclically rotate second line right by number in first line
v : evaluate that will remove leading 0s

Pyth, 4 bytes

v.>z

Try it online!

Explanation

v.>zQ
 Q : first line of input evaluated 
 z : second line of input as string
 .> : cyclically rotate second line right by number in first line
v : evaluate to will remove leading 0s
Source Link
Mukundan314
  • 13.7k
  • 1
  • 19
  • 62

Pyth, 4 bytes

v.>z

Try it online!

Explanation

v.>zQ
 Q : first line of input evaluated 
 z : second line of input as string
 .> : cyclically rotate second line right by number in first line
v : evaluate that will remove leading 0s

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