You are viewing a single comment's thread. Return to all comments →
java solution can you tell me where i am wrong four of my test cases are giving wrong answer int twin=0; int quo=n/c; int rem=n%c; if(quo
} else if(quo>m) { twin=quo; while((quo+rem)>1) { quo=quo/m; rem=quo%m; twin=twin+quo; quo=quo+rem; } } return twin;
Seems like cookies are disabled on this browser, please enable them to open this website
Chocolate Feast
You are viewing a single comment's thread. Return to all comments →
java solution can you tell me where i am wrong four of my test cases are giving wrong answer int twin=0; int quo=n/c; int rem=n%c; if(quo