Neatcode has a faster algorithm; even though they're both O(n), it's faster. There's some beauty in a fast algorithm when it's understandable.