7 120
Підписники
-124 години
-197 днів
-10330 днів
Архів дописів
Got placed in Revature 🥳🥳🥳
100% clearance for any exam with 100% interview Guidance ✅✅
Contact: @mlcoder2
+2
Accenture done successfully through remote access ✅✅✅✅
Contact: @mlcoder2
Note : Remote access available ✅
Those people who need help for the Accenture, HCl, COGNIZANT CSD should contact me Immediately ✅ ✅ ✅
100% clearance ✅
Contact: @mlcoder2
Note: Remote access available ✅
def ProductPair(input1, input2):
n=input1
arr=input2
if n < 2:
return 0
count = 0
pairs_set = set()
for i in range(n):
for j in range(i + 1, n):
if (arr[i] * arr[j]) % 3 == 0:
pair = tuple(sorted((arr[i], arr[j])))
if pair not in pairs_set:
pairs_set.add(pair)
count += 1
return count
product pair ✅
+2
Accenture 2pm slot-1 Done successfully ✅✅✅✅
Contact: @mlcoder2
def OddSum(input1):
#write your code here
def solve(n):
while n%2==0:
n//=2
return n
ans = 0
for i in range(1, input1 + 1):
odd = solve(i)
ans += odd
return ans% 10007
