Create an account to track your scores
and create your own practice tests:
Test: AP Computer Science A
1. | Which is more efficient (i.e. Lower Big O)? 1) arr = [1, 2, 3, 4, 5, 6, 7, 8] arr2 = [[1,2],[3,4],[5,6], [7,8], [9,10], [10, 11]] for (int i = 0; i < arr.length; i++) { for (int j = i; j < arr2.length; j++) { arr[i][j] = 0; } }
2) arr = [1, 2, 3, 4, 5, 6, 7, 8] arr2 = [[1,2],[3,4],[5,6], [7,8], [9,10], [10, 11]] for (int i = 0; i < arr.length; i++) { for (int j = 0; j < arr2.length; j++) { arr[j] = 0; } } |
1
Irrelevant
The Big O is equivalent
2
Rajiv
Certified Tutor
Certified Tutor
University of Michigan, Bachelor of Science, Electrical Engineering. University of Michigan, Master of Science, Industrial an...
Popular Subjects
SSAT Tutors in Dallas Fort Worth, Algebra Tutors in Los Angeles, GRE Tutors in Dallas Fort Worth, Math Tutors in Houston, Statistics Tutors in Seattle, Chemistry Tutors in Miami, SSAT Tutors in Philadelphia, ACT Tutors in San Diego, Chemistry Tutors in Atlanta, Physics Tutors in Washington DC
Popular Courses & Classes
ISEE Courses & Classes in Houston, ACT Courses & Classes in Phoenix, ACT Courses & Classes in San Francisco-Bay Area, MCAT Courses & Classes in Miami, Spanish Courses & Classes in Washington DC, GMAT Courses & Classes in Miami, MCAT Courses & Classes in Philadelphia, SAT Courses & Classes in Los Angeles, GMAT Courses & Classes in Seattle, ACT Courses & Classes in Seattle
Popular Test Prep
MCAT Test Prep in Dallas Fort Worth, GRE Test Prep in New York City, SSAT Test Prep in Houston, LSAT Test Prep in Houston, GMAT Test Prep in Dallas Fort Worth, ACT Test Prep in Chicago, SSAT Test Prep in Boston, SAT Test Prep in Miami, LSAT Test Prep in Los Angeles, GRE Test Prep in Boston
