How can I optimize Palindrome Reorder problem's solution on CSES.fi?
This code passes majority of testcases on CSES.fi except the ones from 6-9 for which I keep getting TLE. Tried many times, but could not fix it. Any hints?
Link to the problem
Полный текст и комментарии »