How can I optimize Palindrome Reorder problem's solution on CSES.fi?

Revision en1, by meirbekbolatbekov002, 2021-09-10 11:23:26

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

Tags #cses, #cses_introductory, #palindrome, nhow

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English meirbekbolatbekov002 2021-09-10 11:23:26 336 Initial revision (published)