We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • Practice
  • Certification
  • Compete
  • Career Fair
  • Hiring developers?
  1. Practice
  2. Algorithms
  3. Implementation
  4. Extra Long Factorials
  5. Discussions

Extra Long Factorials

Problem
Submissions
Leaderboard
Discussions
Editorial

    You are viewing a single comment's thread. Return to all comments →

  • clivic 2 years ago+ 0 comments

    This solution is like mimicking the multiplication process in math, in other words, how you multiply 12 by 5:

    first, 2 (in 12) by 5 is 10. Because 10/10 == 1, we got a 1 here.
    second, 1 (in 12) by 5. Because we got a 1 before, we get 5+1 == 6 here. 
    

    If you write it down on a paper following this code, you will get it.

    6|
    ParentPermalink
  • Contest Calendar
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy
  • Request a Feature