Sum of all pairsfind sum of all possible x+y where x and y are natural number solutions of the equation [code] ...
Lowest common ancestor in a root tree.a basic approach would be to get the root to u path and root to v path. Then compare those two paths...
Approach for the questionI have got partial marks. What is the logic of getting All AC ? please help. I m stuck on this from ...