Bran and Arrow(Easy)
CodeChefOpen on judge ↗
Bran has a quiver. He can perform two actions either he can take an arrow from the quiver or add a new arrow to the quiver. He performs these action $n$ number of times. It is obvious that he cannot take out an arrow from an empty quiver. He wants to test Arya’s intelligence so he gives the sequence of action that he has performed in the form of a string $s$ and asks her the minimal possible numb
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