TheMitraBoy
BAN USERhttp://about.me/gourabmitra
Thanks. I discussed it with a friend over dinner. Got it now :)
- TheMitraBoy February 04, 2014Note that the ropes are of uneven densities. You solution assumes ropes of even density which burn at an equal rate along their length
- TheMitraBoy February 04, 2014instead of the next pointer of the last node in a double linked list pointing to NULL and the prev pointer of the head node pointing to NULL, change it this way :-
next pointer of the last node should point to head
prev pointer of the head node should point to the last node
That should do it i guess
When you say a stack here, i guess you mean the operating system's stack which keeps track of the calls made among processes and co-ordinates them.
But a Process Control Block doesnt contain a stack dedicated to the process, does it? Can anybody clarify this plz.
The output mentioned in the answer doesn't seem to be correct
- TheMitraBoy February 09, 2014