2 ms·
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.
by StavrosK 10y 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.