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

 

norm.krumpe@muohio.edu > maxProduct
prev  |  next  |  chance

Given a positive integer with at least 2 digits, find the largest product that can be made by multiplying two side-by-side digits. For example, maxProduct(3791) is 63 because 7*9 is larger than 3*7 or 9*1.


maxProduct(3791) → 63
maxProduct(2105) → 2
maxProduct(34958) → 45

...Save, Compile, Run (ctrl-enter)

int maxProduct(int num) { }

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

Difficulty: 200

Copyright Nick Parlante 2017 - privacy