To the top of the list

  • 4
  • Locked
Imagine people making appointments at a dental office where the waiting list acts like a stack rather than a queue: the last person to schedule is the first to have a drill taken to his or her tooth. We'll write a program that reflects this unusual situation: create a list and add 10 strings, but we'll add them to the beginning of the list rather than the end.
You can't complete this task, because you're not signed in.
Comments (3)
  • Popular
  • New
  • Old
You must be signed in
Bhavishya SamriyaLevel 8 , Jaipur
11 July, 07:01
what is wrong with my code
RomanLevel 41
12 July, 06:43
If you need help, something isn't right in your code, the server won't accept your solution (even if you are 100% sure that it is correct). Describe your question/issue in the HELP section at
Bhavishya SamriyaLevel 8 , Jaipur
13 July, 04:50
Thank you But I figured it out. There was a mistake in the placement of zero in list.add();