Cody

Hoai Tran Quoc

1357
Rank
4
Badges
795
Score
1 – 50 of 94

Hoai Tran Quoc submitted a Comment to Solution 1015114

Very interesting. I could not understand why I had not passed the test# 3. It turned out that the two number (x4-x1)*(y2-y1) and (y4-y1)*(x2-x1) are not the same due to floating point. My choice is to compare the absolute difference with 10*eps.

on 14 Oct 2016

Hoai Tran Quoc submitted a Comment to Solution 1015114

Very interesting, why the test# 3 is not passed. It turned out that the two number (x4-x1)*(y2-y1) is not the same as (y4-y1)*(x2-x1) due to floating point. I have to compare the subtraction with 10*eps.

on 13 Oct 2016

Hoai Tran Quoc received Promoter badge for Problem 149. Is my wife right?

on 13 Oct 2016

Hoai Tran Quoc submitted a Comment to Solution 313326

It's amazing that your solution size is just 10. I guest it contains just one line of code. Do you mind sharing it? Thank you.

on 10 Oct 2016

1 – 50 of 94