Why Codechef provides editorial solution only in CPP language. Don’t they have testers/authors who program in JAVA? It’s very difficult for a Java programmer to go line by line to understand CPP code which is full of defines.
I think with respect to c/c++, java solutions are more lengthy and difficult to understand !
Codechef provides editorials in English, not in C++.
If you need a code in Java, you have a lot of AC contestants’ codes, just pick one and read it. But Codechef problems are algorithmic, editorials are mainly supposed to explain how to solve the problem, not provide ready codes.
atleast we can understand them if they can’t use defines at all !!
so please post solutions without using them