Given a string contining only r and p at each operation you can delete substring rp and get X coins or delete substring pr and get Y coins what is the maximum you can earn ?
when a substring is deleted adjacent characters become consecutive

Comments (0)