TLE due to max macro. help
These 2 solutions differ only in use of predefined max and #define max .
TLE code
AC code
Please provide detailed explanation to me, it took forever to debug. Thanks