Mistake in delete node code
hi @deepaksehrawat150_50930f2fcb83f47e
go through this https://www.geeksforgeeks.org/delete-nodes-which-have-a-greater-value-on-right-side/
if u still face any difficulty do let me know…
- delete temp
- free(temp)
are these 2 same thing?
hi @deepaksehrawat150_50930f2fcb83f47e
we normally use free in C language and delete in C++.
u can read more about it over here
https://www.geeksforgeeks.org/new-vs-malloc-and-free-vs-delete-in-c/#:~:text=free()%20is%20a%20C,the%20Destructor%20of%20the%20class.
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.