about | help | code help+videos | done | prefs |
Given an int start and an int end, return the amount of integers that are descending between the numbers, inclusive. Hint: Copy and paste your previous isDescending method below your countDescending method. Example: (13, 16) would return 0 since no numbers between 13 and 16 are descending. Example: (20, 29) would return 2 since 20 and 21 are descending. countDescending(10, 30) → 4 countDescending(11, 19) → 0 countDescending(20, 42) → 8 ...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: 200
Copyright Nick Parlante 2017 - privacy