|
|
|
|
|
by timr
3464 days ago
|
|
The number of bytes in a machine number is not the limiting factor here. You could use arbitrary precision numbers (with some constant factor of additional storage), and solve the precision problem. Being pedantic about this point doesn't get you closer to a correct answer. Read dsp1234's responses. They are correct. |
|
Again, I'm aware of how to solve it in practice and that the problem as stated is not what you meant, I was pointing out that as stated, it didn't have a memory bounded solution.
And that it's commom for people to self-assuredly misdefine interview problems, then not understand when the interviewee points out their implicit assumption.