Re:Stochastic, Nerdtastic Restaurant Bill Splitting
by seivan on Wednesday July 18, 2012 @04:45AM
(#4259947)
I solved this recursively, but with a different algorithm... will try this out now :)
Looks like fun!
[ Parent
| on HN ]
Re:Stochastic, Nerdtastic Restaurant Bill Splitting
by dmvaldman on Wednesday July 18, 2012 @04:54AM
(#4259963)
What algorithm? I think these problems are fun.
Re:Stochastic, Nerdtastic Restaurant Bill Splitting
by seivan on Wednesday July 18, 2012 @11:56AM
(#4261341)
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.