Skip to content

Commit

Permalink
fixed files form Math #56
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent 81e9c89 commit 41ec6ca
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,7 @@ public int[] getCounts(int index) {
indices[i] = idx;
}

int idx = 1;
while (count < index) {
count += idx;
++idx;
}
--idx;
indices[last] = idx;
indices[last] = index - count;

return indices;
}
Expand Down

0 comments on commit 41ec6ca

Please sign in to comment.