可以结合具体的算法(比如某个排序算法)说一下怎么计算程序的时间复杂度和空间复杂度吗
This needs to be combined with specific examples. Please cite the problems you encountered
This needs to be combined with specific examples. Please cite the problems you encountered