| about | help | code help+videos | done | prefs |
doubleUntil2 -- You are given two positive integers, num and goal, and want to repeatedly double the value of num until it reaches or exceeds goal. The method should return the number of times num must be doubled. doubleUntil2(1, 8) → 3 doubleUntil2(1, 10) → 4 doubleUntil2(1, 1000) → 10 ...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: 30
Copyright Nick Parlante 2017 - privacy