在线名词解释大全 - 数据结构 - 详细

下面程序段的时间复杂度为()。for(i=0;i<n;i++)for(j=0;j<m;j++)A[i][j]=0;

A
O(1)
B
O(n^2)
C
O(m^2)
D
O(n*m)
正确答案:
相关推荐
扫描二维码
关注公众平台