Linked List with Trains and Waggons. | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Linked List with Trains and Waggons.

redirect the passenger's so that all Waggons are full. Delete the empty waggons. Does anyone know how to redirect passenger's?

14th Nov 2018, 1:17 PM
Sin
6 Respostas
0
Means?? Mind showing the whole code? 1)Check if wagon is full or not. If it is not, add passengers. 2)If it is, add to other wagon. And then loop
14th Nov 2018, 1:32 PM
Roneel
Roneel - avatar
0
Roneel we don't have a code for this one... If you don't mind & if you have time can you help me with StringList & IntegerList... pleasešŸ™
14th Nov 2018, 1:34 PM
Sin
0
Roneel loop through whole list?
14th Nov 2018, 1:37 PM
Sin
0
Sin no no If non-full wagon is found, add passenger in it and break.
14th Nov 2018, 1:45 PM
Roneel
Roneel - avatar
0
Roneel how can I add my code here? Or do you have twitter/Instagram/email?
14th Nov 2018, 1:47 PM
Sin
0
Sin if you use android app Open code playground tab Tap + Select language and use Sololearn message feature
14th Nov 2018, 1:49 PM
Roneel
Roneel - avatar