Home of real teaching & learning
  • Full support for teachers
  • Focus on critical thinking
  • Engaging classroom activities
  • Integrated student eBook
  • Assessed tasks / qBank
  • Practice exam questions

The InThinking Guarantee: Our sites are written by expert practitioners and not by AI

See our AI policy

Disclaimer: InThinking subject sites are neither endorsed by nor connected with the International Baccalaureate Organisation.

Don't miss out, find out!

Topic 5.1 - Linked Lists - Exercises

1. A linked list is to be used as part of a railway train station system. As trains arrive at the station they are added to the tail of the list and as the leave the station they are removed from the head of the list. Each train has the following attributes. TRAIN_ID – A 5 digit unique number TRAIN_ORIGIN - The name of the station the train came from. TRAIN_DESTINATION - The final destination of the train....

Help