相关疑难解决方法(0)

根据索引查找金字塔行?

给出一个像金字塔:

      0
     1 2
    3 4 5
   6 7 8 9
     ...
Run Code Online (Sandbox Code Playgroud)

和给定的金字塔的索引i,其中i代表该i金字塔的第号,有一种方法以找到其中的行的索引i个元素属于?(例如,如果i = 6,7,8,9,它在第3行,从第0行开始)

math indexing computer-science

4
推荐指数
1
解决办法
762
查看次数

标签 统计

computer-science ×1

indexing ×1

math ×1