给出一个像金字塔:
0 1 2 3 4 5 6 7 8 9 ...
和给定的金字塔的索引i,其中i代表该i金字塔的第号,有一种方法以找到其中的行的索引i个元素属于?(例如,如果i = 6,7,8,9,它在第3行,从第0行开始)
i
i = 6,7,8,9
math indexing computer-science
computer-science ×1
indexing ×1
math ×1