about | help | code help+videos | done | prefs |
Given an int of digits with the length of greater than equal 1, return the biggest digit if the boolean parameter max is true. If max is false, then the smallest digit needs to be returned. maxDigit(1112, true) → 2 maxDigit(3421, false) → 1 maxDigit(0, true) → 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
Difficulty: 110
Copyright Nick Parlante 2017 - privacy