this post was submitted on 17 Jan 2024
414 points (100.0% liked)

196

16443 readers
2205 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 10 points 9 months ago (2 children)

Sizes of the brackets are just weird: 2, 7, 4, 28 quick fix could be 2, 7, 12, 20

[–] [email protected] 6 points 9 months ago (1 children)

No thats weird too, the brackets should be 1, 1, 2, 3, 5, 8, 13, 21

[–] [email protected] 2 points 9 months ago
[–] [email protected] 5 points 9 months ago* (last edited 9 months ago) (1 children)

2, 7, 4, 28

They're actually ~~3~~ 2 (edit: the first one was right), 8, 5, 29

https://en.m.wikipedia.org/wiki/Off-by-one_error#fencepost_error

[–] [email protected] 6 points 9 months ago (1 children)

Unless I'm mistaken, it should be 2, 8, 5, 29 right?

[–] [email protected] 7 points 9 months ago

Whoops, in my haste to notice the fencepost error, I didn't notice the first number was correct!