Hacker News new | ask | show | jobs
by StavrosK 3519 days ago
Mine were different, the solution to one was literally "return len(x) - x.count(a)". If you didn't realize that, you spent an hour battling off-by-one errors.