March 10, 2021
March 10, 2021
March 13, 2021
March 13, 2021
March 13, 2021
Reason for NO TLE in C
This is because there are total n*(n-1)/2 pairs of two numbers possible. So there can be maximum n*(n-1)/2 different sums possible.
And from the constraint a[i]<=2.5*10^6. So, maximum possible sum will be 5*10^6.
That's why when n*(n-1)/2 is greater than 5*10^6, then answer always exists. So, when n>4000, the there always exist a answer. Hence not getting TLE.
This is because there are total n*(n-1)/2 pairs of two numbers possible. So there can be maximum n*(n-1)/2 different sums possible.
And from the constraint a[i]<=2.5*10^6. So, maximum possible sum will be 5*10^6.
That's why when n*(n-1)/2 is greater than 5*10^6, then answer always exists. So, when n>4000, the there always exist a answer. Hence not getting TLE.
March 13, 2021
Also same codes are getting accepted after contest which got TLE during the contest
March 13, 2021
Video will pe posted soon, my onenote app(white board i use), is crashing up my laptop
March 17, 2021
Videos will be littke late, Microsoft OneNote and white board, both apps are causing trouble, laptop freeze kar de raha, fir force restart karna pad raha
March 18, 2021
March 18, 2021
March 21, 2021
March 21, 2021
March 22, 2021
March 25, 2021
March 25, 2021
March 25, 2021