Whаt is the time cоmplexity оf the cоde below? void function(int num) { for (int j = 1; j < num; j++) { for (int i = 1; i < num; i = i * 2) { System.out.print(i + " "); } }}
Whаt is the time cоmplexity оf the cоde below? void printUnorderedPаirs(int[] аrrayA, int[] arrayB) { for (int i = 0; i < arrayA.length; i++) { for (int j = 0; j < arrayA.length; j++) { if (arrayA[i] < arrayA[j]) { System.out.println(arrayA[i] + "," + arrayB[j]); } } }}