You are viewing a single comment's thread. Return to all comments →
@puneetrajraipur1 and @rakitamiljan i to face same problem; when i use System.out.println(ans); it do not pass any case even if String ans="1 2 3";
then i use System.out.print(ans); it pass all test cases//with logical ans
so 1) do not have extra space at the end 2) do not start new line after printing ans (or no [\n] after ans)
([----] is for new data/char)
accpeted
rejected
or
hope this help or let me know if any doubt
Seems like cookies are disabled on this browser, please enable them to open this website
The Longest Common Subsequence
You are viewing a single comment's thread. Return to all comments →
@puneetrajraipur1 and @rakitamiljan i to face same problem; when i use System.out.println(ans); it do not pass any case even if String ans="1 2 3";
then i use System.out.print(ans); it pass all test cases//with logical ans
so 1) do not have extra space at the end 2) do not start new line after printing ans (or no [\n] after ans)
([----] is for new data/char)
accpeted
1 2 3----------
rejected
1 2 3 ---------
or
1 2 3
hope this help or let me know if any doubt