This is a companion discussion topic for the original entry at https://toph.co/p/maximum-multiplication

This is a companion discussion topic for the original entry at https://toph.co/p/maximum-multiplication

cant done the 2nd test case…how it becomes 1089 ??? incrementing 16 times we get a=36…so 36*20=1080 …all test case got ans but except this one…help plz

@LegendHabib Since k = 16, you can perform at most 16 increment operations on `a`

and `b`

. If you increment `a`

13 times and `b`

3 times you get `a + 13 = 33`

and `b + 3 = 33`

. This gives you `a * b = 33 * 33 = 1089`

.

1 Like