Help with clarficiation

problem: https://leetcode.com/problems/reverse-pairs/

video: https://www.youtube.com/watch?v=S6rsAlj_iB4&list=PLgUwDviBIf0rPG3Ictpu74YWBQ1CaBkm2&index=19

time stamp : 3:51

in the problem the eqn given is a[i] >= 2*a[j]
but in the video at the time stamp they have written the opposite please explain

hello @raghav007

this is skipping condition when u dont have to count such pairs.

rewatch the video

okay so if the condition in the video is satisfied then we don’t have to count it?

yeah becuase a[i]<=2*a[j] is something that we dont want, we want opposite of it