about | help | code help+videos | done | prefs |
maxProduct
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 200
Copyright Nick Parlante 2017 - privacy