about | help | code help+videos | done | prefs |
solveContestProblem
Returns the only one seven-digit number that has both these qualities: First, its digits are in ascending order in the sense that each digit after the first one (that is, the digit in the millions place) is greater than the digit before; and second, when it is multiplied by 2020, the resulting product is a 10-digit number in which every digit from 0-9 appears once. Note that the return type is long. Your solution should use the helper functions isAscendingNumber and containsAllDigits. ...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