I don't got a name for it, as it wasn't a specific algorithm being followed, I Just "solved it" by coding it.
I had to do it recursively because calling it once would not give an accurate number, so it called itself until the numbers matched up :)
I can share the Ruby code once I clean it up. I intend to open source the web app anyway.
Comments
What algorithm? I think these problems are fun.
I don't got a name for it, as it wasn't a specific algorithm being followed, I Just "solved it" by coding it. I had to do it recursively because calling it once would not give an accurate number, so it called itself until the numbers matched up :) I can share the Ruby code once I clean it up. I intend to open source the web app anyway.