Skip to main content
edited body
Source Link
TFeld
  • 19.9k
  • 3
  • 20
  • 63

Python 2, 20 bytes

lambda n,i:i%n*n+n-1

Try it online!

Same principalprinciple as Mr. Xcoder's answer

Python 2, 20 bytes

lambda n,i:i%n*n+n-1

Try it online!

Same principal as Mr. Xcoder's answer

Python 2, 20 bytes

lambda n,i:i%n*n+n-1

Try it online!

Same principle as Mr. Xcoder's answer

Source Link
TFeld
  • 19.9k
  • 3
  • 20
  • 63

Python 2, 20 bytes

lambda n,i:i%n*n+n-1

Try it online!

Same principal as Mr. Xcoder's answer