id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

jebbert@volusia.k12.fl.us > awakenSL2
prev  |  next  |  chance

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)

public int awakenSL2(int[] a, int[] b) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 290

Copyright Nick Parlante 2017 - privacy