Re:Probability, Paradox, and the Reasonable Person Principle
by raymondh on Monday October 05, 2015 @12:33AM
(#10329986)
The Python code is mostly clear and beautiful. Just one small wish: please use collections.deque() instead of showing an O(n) insertion into a list using "deck[0:0] = [card]".
[ Parent
| on HN ]
Re:Probability, Paradox, and the Reasonable Person Principle
by norvig on Monday October 05, 2015 @03:46AM
(#10330387)
You're right! 2.4 was out when I wrote that, so I could/should have used dequeue. But I wanted to use things that I thought readers would be familiar with, and timing wasn't a big issue.