Problem 58971. Compute the maximal product of any two numbers whose concatenation is n

Write a function that takes an input n and computes the maximal product of numbers that concatenate to n. For example, if n = 1234, then the products are 1 x 234 = 234, 12 x 34 = 408, and 123 x 4 = 492, and the maximal product is 492. If n < 10, set the maximal product to zero.

Solution Stats

61.54% Correct | 38.46% Incorrect
Last Solution submitted on Dec 07, 2023

Solution Comments

Show comments

Problem Recent Solvers8

Suggested Problems

More from this Author279

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!