×

# TLE error in the problem

 0 I am not able to remove TLE error from this. Here are the original constraints for the problem. 1≤T≤1,000 1≤N≤105 1≤Ai≤N for each valid i the sum of N over all test cases does not exceed 2⋅10^5. def happy(L): for i in range(1,len(L)-1): j=i+1 while j
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×688
×481