Try aabbc …
1 Like
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…?
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.