@@ -0,0 +1,256 @@
+def pairSum1(arr, k): if len(arr)%3C2: return arr.sort() left, right = (0, len(arr)-1) while left%3Cright: currentSum=arr%5Bleft%5D+arr%5Bright%5D if currentSum==k: print arr%5Bleft%5D, arr%5Bright%5D left+=1 #or right-=1 elif currentSum%3Ck: left+=1 else: right-=1 - See more %0A

Create ArrayPairSum.py