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 Revisions

1 of 5
Jonathan Allan
  • 115.4k
  • 8
  • 68
  • 293

Python 3, 44 bytes

f=lambda n,m:int((n[-m%len(n):]+n)[:len(n)])

Try it online! Or see the test-suite.

Jonathan Allan
  • 115.4k
  • 8
  • 68
  • 293

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