Permutation of players
CodeChefOpen on judge ↗
As you know in COUNTER STRIKE each player can belong to either Terrorist or Counter Terroritst. Let T denotes player belong to Terrorist and C denotes player belongs to Counter Terrorist. You are given a String S of length N-1, and it consists only of the letters C and T. You need to rearrange the numbers from 1 to N(including 1 and N) and save it an array X such that - if S[i] = T --> X[i] > X[
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