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.
No, if n=2 then there will be 2 combinations (a,b) and when n=3, there will be 4 combinations (aa,ab,ba,bb) and so on..
The first stone (n=1) is always zero so it can be ignored.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Manasa and Stones
You are viewing a single comment's thread. Return to all comments →
No, if n=2 then there will be 2 combinations (a,b) and when n=3, there will be 4 combinations (aa,ab,ba,bb) and so on.. The first stone (n=1) is always zero so it can be ignored.