My code URL is :-https://ide.codingblocks.com/s/644568
plz correct my code.
My code is not giving any output
@chhabrarishi2001_264ecb7697e8af2a
as per the input format you have to first take “n” as input then k and then nodes, but you are taking input “k” at last.else your code is correct.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.