Film Posters
CodeChefOpen on judge ↗
On a wall of a bus station, there is enough space to post N number of film posters in a single row. A Production company 'A' posted in all the N slots with different posters of same size. Later, it became an issue for other companies due to lack of space. All companies reached upon an agreement so that no company can post more than 'K' consecutive posters. So company 'A' decided to remove some of
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