about | help | code help+videos | done | prefs |
Write a method that counts the number of times an element in the first array is greater than the corresponding element in the second array. The two arrays could have different lengths. Stop counting when the end of either array is reached. Look at the test data for examples. awakenSL2([1, 4, 5, 6], [3, 4, 4, 2]) → 2 awakenSL2([6, 7, 8, 9], [5, 4, 3, 2]) → 4 awakenSL2([], []) → 0 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 290
Copyright Nick Parlante 2017 - privacy