Game of Tiles
CodeChefOpen on judge ↗
Supratik has invented a new game called 'Game of Tiles'. The Game can be described as follows: There are N tiles arranged in a straight line. Every tile has a value associated with it. A player can choose any tile to start with. He can jump from any tile i to any other tile j in forward direction only provided value of jth tile is less than or equal to ith tile.See explanation for more clarity.
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start