We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
This question has wrong description, something that leads to wrong assumptions. One should not use X1 and X2 in example, it means X1 and X2 are adjecent data points. Instead use Xa and Xp where a and p can be any number from 1 to N, N being the size of the data set.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Symmetric Pairs
You are viewing a single comment's thread. Return to all comments →
This question has wrong description, something that leads to wrong assumptions. One should not use X1 and X2 in example, it means X1 and X2 are adjecent data points. Instead use Xa and Xp where a and p can be any number from 1 to N, N being the size of the data set.