How to calculate space and time complexity for this code

后端 未结 0 888
遇见更好的自我
遇见更好的自我 2021-01-20 12:28
public static int desc(int number) {

        // Time complexity = 2n+n2
        // space complexity = ?

        int i, j, temp;
        int array[] = new int[Integ         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题