REARRSTR - Editorial

Try aabbc …

1 Like

Can anyone please give me a testcase where my solution fails ?
my solution

please give me test case where my solution gives wa
http://www.codechef.com/viewsolution/7018600

Please someone help me find out for which case my solution gives wrong answer. I tried so many cases but didn’t find such case. CodeChef: Practical coding for everyone

kmxyYA - Online C++ Compiler & Debugging Tool - Ideone.com GIVES WA… have approached the same way as is mentioned above… Need test case where it fails…? :frowning:

https://www.codechef.com/viewsolution/36181982
PLS help i first inserted the element with max freq at max possible distance between them.Then i found places which r nt filled yet then i filled all of them at max dis.