Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on How We Learned to Cheat at Online Poker: A Study in Software Security (1999). Parent comment
Depending on the array implentation, adding and removing elements is often an O(n) operation, which isn't terribly efficient. The Fisher-Yates method lets you get the same results without messing with the array length.
There are no comments on this comment yet.
Depending on the array implentation, adding and removing elements is often an O(n) operation, which isn't terribly efficient. The Fisher-Yates method lets you get the same results without messing with the array length.