id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

simona1@sfusd.edu > solveContestProblem
prev  |  next  |  chance

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)

long solveContestProblem(){ }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Copyright Nick Parlante 2017 - privacy