Ad
  • Custom User Avatar

    In this kata, a difference seems to be defined as non-negative integer. So, there are no pairs when a negative n is given. And also, think carefully for n==0 case (e.g. lst=[1,1,1],n=0). When you want to check the input values, try to add a temporary code like "print(lst,n)"