0
/ 10
What would be the Big O Complexity for the following method?
public static void arrayDoubleValue(int[] nums, int[][] nums2) { for (int i...
What would be the Big O Complexity for the following method?
public static void arrayDoubleValue(int[] nums, int[][] nums2) {
for (int i = 0; i < nums.length; i++) {
nums[i] = nums[i] * 2;
}
for (int i = 0; i < nums2.length; i++) {
for (int j = 0; j < nums2[i].length; j++) {
nums2[i][j] = nums2[i][j] * 2;
}
}
}
Your feedback will appear here when you check your answer.