3 ms·
Or in C: f(int m) { return [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][m] } The OP didn't claim it was better than anything, it's just a nice exercise in
by bvrlt 12y ago
Or in C: f(int m) { return [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][m] }
The OP didn't claim it was better than anything, it's just a nice exercise in style!