From 0dfd4f2629404ba377856a47256dab0579016156 Mon Sep 17 00:00:00 2001 From: Harshit Bansal Date: Fri, 2 Oct 2020 10:14:12 +0530 Subject: [PATCH] Create divisible-sum-pair.py --- divisible-sum-pair.py | 60 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 divisible-sum-pair.py diff --git a/divisible-sum-pair.py b/divisible-sum-pair.py new file mode 100644 index 0000000..cbf4fc3 --- /dev/null +++ b/divisible-sum-pair.py @@ -0,0 +1,60 @@ +''' +problem-- +You are given an array of n integers, ar=[arr[0],arr[1],..,arr[n-1]], and a positive integer, k. Find and print the number of (i,j) pairs where i