i am getting wrong answer for my tree
code link : https://ide.codingblocks.com/s/102861
Find sum at level k wrong output
In netbeans my code is showing correct output but on the online platform it is showing run time error.
code link : https://ide.codingblocks.com/s/103142
can plzz someone tell the mistake in my code?
Hi Himanshu,I am working on your code will come with necessary info in a while.
Hey Anmol , have u find the error in the code?
Hi Himanushu,
Please comment off your line 27
Scanner sc=new Scanner(System.in);
as you have already declared a static Object sc for taking Input.
Please mark it resolved if it helps.
Thankyou
yeah thank u anmol my doubt has now been resolved.