I am not returning anything in the void function reverse(int k ) but still the error is getting displayed that don’t return Node in the void function. Please have a look at the error.
I am not returning anything in the void function reverse(int k ) but still the error is getting displayed that don’t return Node in the void function. Please have a look at the error.