Exercises for Chapter #4 of A Common-Sense Guide To Data Structures and Algorithms
Get The Book!Regarding the array [50, 60, 70, 20, 30, 10]:
Regarding the array [10, 20, 30, 40, 50, 60]:
Regarding the array [60, 50, 40, 30, 20, 10]:
Describe the following code in terms of Big O Notation:
first_array = [5, 4, 9, 7, 2] | |
second_array = [3, 1, 6, 8, 0] | |
first_array.each do |x| | |
second_array.each do |y| | |
print x * y | |
end | |
end |