X448: BigO - Doubled Value BigO

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 Answer:

Select one answer:


Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.