#3536

Maximum Product of Two Digits

pupil · 300 · lc easy +20 · 69.3% accepted · 67 likes · top 77%

Description

Given a positive integer n, find the greatest product obtainable by multiplying any two of its digits.

Note: If a digit appears more than once, you may use it twice.

Code

1
2
3