Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Length of group in Range(Fibonacci) #68

Open
kgs opened this issue Mar 31, 2023 · 1 comment
Open

Length of group in Range(Fibonacci) #68

kgs opened this issue Mar 31, 2023 · 1 comment

Comments

@kgs
Copy link

kgs commented Mar 31, 2023

I want to understand what is the meaning of "length" field. In example from specification, start of the group is 5 with length equal to 3. I was expecting range of 3 values (5, 6, 7) but there are 4 in this example (5, 6, 7, 8). Which case is correct?
image

@janwinkler
Copy link

yes, "length" is not the best word here since it does not give the length of the group but the "distance" between first and last ID

first item:

  • single item of 3

second item:

  • group starting at 2 IDs away from last item's end (3), hence start = 5
  • group end has a distance of 3, therefore the last ID is 8
  • group contains the IDs 5 to 8 (= 5,6,7,8)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants