414
Rule (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] key@lemmy.keychat.org 10 points 8 months ago

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

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)

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

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!

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

196

16296 readers
2949 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