Getting tle in some cases....since using python.....kindly help me with c++ code

@aman89533
ur logic is correct and time complexity is also fine.
there might be some issue with checker due to which is showing tle.
try bottom up approach once too

have tried both approach…getting tle…it happens with many question looks like checker don’t like python

could you please help me with this one…palindromic queries

@aman89533
there might be some issue with checker due to which is showing tle. i will contact the problem setter
regarding your other doubt please mark this one resolved and create a new one ,it ll be resolved there