You are viewing a single comment's thread. Return to all comments →
but sir this solution is not satisfying all the test cases.
i mean first you have to calculate the first term then see that the first term is common in all terms so you have to just appy a loop after that , and in that loop i have told that what we have to perform. Now just simply iterate that loop and multilpy that first term to the matter that you calculated inside the loop.
u are correct bro..but i amnot getting the array declaration in java..can you help me?