about | help | code help+videos | done | prefs |
findLuckyDigits
In China, 8 is a very lucky number. Create public int findLuckyDigits(int num). Given a three digit number (num will always be 3 digits), return how many lucky numbers are in it. So 838 would return 2. findLuckyDigits(838) → 2 findLuckyDigits(888) → 3 findLuckyDigits(123) → 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
Copyright Nick Parlante 2017 - privacy