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.
  • HackerRank Home

    HackerRank

  • |
  • Prepare
  • Certify
  • Compete
  • Hiring developers?
  1. Prepare
  2. Algorithms
  3. Game Theory
  4. Stone Division
  5. Discussions

Stone Division

Problem
Submissions
Leaderboard
Discussions
Editorial

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

  • maheshud
    6 years ago+ 0 comments

    Finally, got this using grundy numbers again. This is little complicated due to long numbers required for N and factors. Grundy numbers are still integers only. Also two of the test cases failed initially forcing me to use a Map for storing the grundy numbers during calculation. That solved all the test cases.

    0|
    Permalink
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy