Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Unless when they happen to be equal. Then it never halts.


Actually, computing the minimum should work: If they are equal you can still lazily produce the digits of the decimal expansion. What you can’t do in this case is to tell whether this minimum is equal to the first or the second number.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: