Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
reverse linked list using stack?
beginner for stack, sorry for asking some potential stupid question, I'm building a reverse linked list using stack, I can't spot out the error.
- Anonymous2 months agoFavorite Answer
Put a test in the middle of the function. After building up the stack, print it. To make sure all the items are on the stack. Then you'll know if the error is in the first half or the second half.