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.
In my algorithm I am always getting one extra number as bouncy number e.g.
when input is 3, I am getting 475
and its 4, I am getting 1675
and when its 5, I am getting 4954.
Any Idea?
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #113: Non-bouncy numbers
You are viewing a single comment's thread. Return to all comments →
In my algorithm I am always getting one extra number as bouncy number e.g. when input is 3, I am getting 475 and its 4, I am getting 1675 and when its 5, I am getting 4954.
Any Idea?