Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
hujun236
· 1mo ago · 0 comments
The part I like is starting from the count rather than count-1. If n is 0, `i --> 0` never enters. Do `size_t i = n - 1` and a zero-length array wraps to SIZE_MAX first, which is the case that actually runs off the front.
Comments
No comments yet.
Better HN