My code is having TLE, rectify error

Link to my code-

Hey @7nishit
Your code is too complex
See this https://ide.codingblocks.com/s/65736?_ga=2.171242848.1114558533.1583836599-890245095.1579188087

Thanks for the idea of using the ascii values for letter generation and comparison. But there are few redundant lines in your code, I have reframed it, thanks for the logic brother:)

1 Like