We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ID: lastfactorialdigit
Difficulty: 1.5
CPU Time: 1 second
Memory: 1024 MB
A basic for-loop or helper function can be used to calculate N!, but doing modulo division by 10 either way will get the last digit of that result.