Dynamic Programming is an algorithmic problem-solving method, based on combining solutions to several sub-problems to find the answer.
If you want to try the puzzle for yourself: https://www.codingame.com/training/expert/the-resistance
---
Join the CodinGame community today: https://codingame.com/start
Discover our developer screening solution: https://www.codingame.com/work