Count index pairs i < j with nums[i] > 2·nums[j] — faster than checking every pair. Too many requests from your network. Please wait a minute.