FIND MAX SHOPS
CodeChefOpen on judge ↗
You have visited a market which is in the shape of a rectangle. At some points (x,y) there are shops with some level of royalty. You want to visit a maximum number of shops. But there are some rules to visit the shops: 1. You can visit shops with an increasing level of royalty. 2. If you visited a shop with coordinates as $X$ and $Y$ then you can visit only those shops having $x \ge X$ and $y \ge
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