未知题型
以下程序段的时间复杂度为( )。 s = 0; i = 0; do { i = i+1; s = s+i ; }while(i<=n)<br>
【参考答案】
O(n)
点击查看答案&解析
