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.
This is interesting problem. It may be solved using recursive formula for numbers 1,2,3,4,6, ... But I have no idea why this formula works. Can someone be kind enough to explain?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Girlfriend & Necklace
You are viewing a single comment's thread. Return to all comments →
This is interesting problem. It may be solved using recursive formula for numbers 1,2,3,4,6, ... But I have no idea why this formula works. Can someone be kind enough to explain?