Thanks--these are awesome! (though their simplicity does make me feel a bit dense)
One question: You're testing convergence using an equality operation on floats. Is there any chance we might encounter some sort of oscillation in the least significant bit (e.g., due to some sort of quantization effect)? Put another way, should we be limiting this loop by some sort of fallback count, or perhaps doing a fuzzy compare instead of exact? On Mon, May 7, 2012 at 3:10 PM, Chris Knott <[email protected]> wrote: > Here are commented solutions... > http://paste2.org/p/2012908 > http://paste2.org/p/2012907 > http://paste2.org/p/2012904 > > -- > You received this message because you are subscribed to the Google Groups > "Google Code Jam" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-code/-/cIJRu4gNln0J. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-code?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-code?hl=en.
