this is question CodeChef: Practical coding for everyone
my solution
0UMOIx - Online C++0x Compiler & Debugging Tool - Ideone.com
can anyone please tell me what i did wrong.
this is question CodeChef: Practical coding for everyone
my solution
0UMOIx - Online C++0x Compiler & Debugging Tool - Ideone.com
can anyone please tell me what i did wrong.
thanks alot bro
@ssjgz, can u please help me out for same ques.
my solution is CodeChef: Practical coding for everyone
Consider the test input:
1
<>>
sorry …i misunderstood the ques…
can u plz help me to find whats wrong in this solution
https://www.codechef.com/viewsolution/33148398
That solution fails the sample testcase on my machine.
i can’t understand the ques…like for case -> <<>><>>
ans will be 7 or 4?
Neither:
prefixLength: prefix: is valid:
1 < false
2 << false
3 <<> false
4 <<>> true
5 <<>>< false
6 <<>><> true
7 <<>><>> false
but as per sample test case “<>>>” gives 2 even though its invalid ,thus “<<>><>>” also must give 6 to be answer irrespective of invalid string format. ?
prefixLength: prefix: is valid:
1 < false
2 <> true
3 <>> false
4 <>>> false
yes,but for string “<>>>” it is showing output as 2(refer sample test case) maybe because of “<>” part in it ,right ? ,So the tagged,string should give 6 as output na
?
The answer to the test input:
1
<<>><>>
is 6
, yes.