Marks :10
: 4 | : 0
Given a number N, the task is to split the Number into multiple parts in such a fashion as to find the highest Product.
Mathematically, we are given n and we need to maximize ($$$ a_1 * a_2 * a_3 …. * a_K $$$) such that ($$$ n = a_1+ a_2 + a_3 … + a_K$$$) and ($$$a_1, a_2, … a_k > 0$$$).
The online line contains an integer N ($$$1\le N \le 100$$$)
For each test case print the maximum product that is possible.
6
9
4
4
You need to login to view your submissions.
You need to login to view all submissions.
Result : Executed
Feel something is wrong with the test cases?
Result : Accepted
Test Cases :
But to Run or Submit the Problem, you need to Log In.
Continue to Log InYour challenge has been submitted successfully.
You will get a response soon via WhatsApp or Email.
Do let us know your issue.