Same solution work on CPP but TLE in Python.
How can it be improved?
TLE on submission K-ordered-LCS
Hey Danish!
Your approach seems correct, but python is a bit slower and the test cases are large so its giving TLE.
The problem is for c++ Course and test cases are larger as they are set according to c++ only, so it will give TLE in python as python will take more time.
THANKS!