about | help | code help+videos | done | prefs |
Write a method that returns the greatest digit from 'num'. For example, if 'num' is 7612841 you would return 8 since that is the greatest of all the digits in 'num'. As a precondition you may assume that 'num' is positive. Look at the test data for examples. test2021_12_15_APSLHL_biggestDigit(11232112) → 3 test2021_12_15_APSLHL_biggestDigit(12351) → 5 test2021_12_15_APSLHL_biggestDigit(543221) → 5 ...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: 230
Copyright Nick Parlante 2017 - privacy