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

196

16272 readers
2347 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
[–] key@lemmy.keychat.org 10 points 8 months ago (2 children)

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

[–] LSDpoem@lemmy.world 6 points 8 months ago (1 children)

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

[–] HonoraryMancunian@lemmy.world 5 points 8 months ago* (last edited 8 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

[–] optissima@lemmy.ml 6 points 8 months ago (1 children)

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

[–] HonoraryMancunian@lemmy.world 7 points 8 months ago

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