Samosa Fight
CodeChefOpen on judge ↗
Sajal and Deepanshu have tray of Samosa’s with each pile containing some number of samosas. The tray are arranged from left to right in a non decreasing order based on the number of samosas in each tray. They play the game as For every continuous subsequence of samosa tray (at least 2 tray form a subsequence), Sajal and Deepanshu will play game on this subsequence of samosa tray, Sajal plays firs
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