Program that simulates the clash between robots with their respective 'power'. A robot with a higher power than their current enemy means it wins the battle and gets to fight another enemy, the loser is deleted from the list. The remaining robots (if any) are printed as output. Doubly Linked Lists are used for the solution.
Program that simulates the clash between robots with their respective 'power'. A robot with a higher power than their current enemy means it wins the battle and gets to fight another enemy, the loser is deleted from the list. The remaining robots (if any) are printed as output. Doubly Linked Lists are used for the solution.