Holy Sequence
CodeChefOpen on judge ↗
In the Kingdom of floating stones each stone has some magical value. The people in the kingdom will consider some stones as holy when the stones belongs to the holy sequence.The holy sequence must be a continuous sequence and they must be in this form stones[i]stones[j+1]>stones[j+2]..>stones[k], (iInput First line consists of two numbers N and M N denotes the number of stones present in the ki
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