Should the sequence always begin with “<”
Is the answer to the input ><> 0 or 2?
I wish i could help you but its an ongoing contest. Just a small hint - Give stress on the word “Valid & Longest Prefix”. Combine both and you’ll solve it.
Read the statement again, It is no where mentioned that expression will always begin with ‘<’
Discussions for live contest’s questions is not allowed.
Moreover, for any clarifications comment in question’s page only. For your question : CodeChef: Practical coding for everyone
If your question would be genuine, you would get answer there.
Discussing is not allowed in live contests!Please read the guidelines
Answer is 0.
<>>>>>><> o/p for this input 9/2
sir how can we give string array of size 10^6 …plz help me
what is the answer of this <<> ?
@dileep2436, please look up tutorials of previous problems. There is a huge treasure out there. You will be able to find helpful hints.