Skip to content

Instantly share code, notes, and snippets.

@Ifihan
Created February 15, 2025 22:06
Show Gist options
  • Save Ifihan/4aa1abad0bb4bc5a0c2f46a4435fca41 to your computer and use it in GitHub Desktop.
Save Ifihan/4aa1abad0bb4bc5a0c2f46a4435fca41 to your computer and use it in GitHub Desktop.
Find the Punishment Number of an Integer

Question

Approach

Hm, I think I'm getting weak or backtracking is difficult. Well, editorial came to save me

image
@lenajeremy
Copy link

this was a literal punishment

@lenajeremy
Copy link

spoiler, today's own is also backtracking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment