๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.63K subscribers
5.61K photos
3 videos
95 files
10.6K links
๐ŸšฉMain Group - @SuperExams
๐Ÿ“Job Updates - @FresherEarth

๐Ÿ”ฐAuthentic Coding Solutions(with Outputs)
โš ๏ธDaily Job Updates
โš ๏ธHackathon Updates & Solutions

Buy ads: https://telega.io/c/cs_algo
Download Telegram
#use 1st line for permutations
from itertools import permutations

li=[]
ans =[]
re = []
li = list(permutations(input))
for i in li:
s =0
for j in range(len(i)):
op = 2**j
s += i[j]//op
ans.append(s)
for i in input3:
a =0
for j in ans:
if i<=j:
a+= 1
re.append(a)
return(re)

Farmer jhons dilemma โœ…
(Python 3)
๐Ÿ‘1๐Ÿ”ฅ1