Light Mode
Dark Mode
Solution works & takes a long time, but fails

The solution I've written works and passes when I run it, but fails when I run the check. I think this is because the code takes a long time to run the bigger the number entered as the parameter. I've attached my code for review. Can I be marked as passing this one?

Attachment
Created: March 29, 2019, 11:19 p.m.
Updated: April 28, 2019, 8:30 a.m.
0
19
User avatar
rockwellshabani