WhiteHat Coding
Открыть в Telegram
650
Подписчики
Нет данных24 часа
-27 дней
-330 день
Архив постов
Repost from Off Campus Updates | AMAZON | IBM | TCS | WIPRO | WILEY EDGE | VIRTUSA | MINDTREE | COGNIZANT
Deloitte❤️
Is hiring for .Net Developer
https://usijobs.deloitte.com/careersUSI/JobDetail/USI-R-FA-EH-Net-Developer-Sr-Consultant-Solvas-Digitize/126010
Amazon (Work from Home)❤️
Any graduate can apply✅
https://amazonvirtualhiring.hirepro.in/registration/incta/ju0f4/apply/?j=57554&e=13518
Join Telegram --> @Offcampus_000❤️
Easy to apply✅
Guys share ur coding questions
👇👇
https://t.me/Free_coding000
https://t.me/Free_coding000
Those who need Job in It Companies can check this channel
Join now @Offcampus_000
🔥🔥
Latest Jobs and Internships Updates for 2021,2022, 2023 and 2024 Batch
Be aware with this channel 🤦♂️🤦♂️🤦♂️🤦♂️
Simply copying other proofs 😡😡😡😡😡
Fruad alert 😡😡
Fake helper(fake group) 🛑🛑🛑 spoiled many students life 🤦♂️
He is just copying other group screenshots and doing scam here 🤦♂️🤦♂️🤦♂️Fake channel 😡😡
Fake channel link report channels..✅
Share to ur frds....✅👨💻
Be aware with this channel 🤦♂️🤦♂️🤦♂️🤦♂️
Simply copying my proofs 😡😡😡😡😡
Fruad alert 😡😡
Fake helper(fake group) 🛑🛑🛑 spoiled many students life 🤦♂️
He is just copying other group screenshots and doing scam here 🤦♂️🤦♂️🤦♂️Fake channel 😡😡
Fake channel link report him 👇👇
@Coolguy00000
Share to ur frds....✅👨💻 👉1
Minimize Marked Fruits
Python
Trilogy Innovations
def minimize_marked_fruits(A, B, C):
marked = [False] * A
count = 0
for i in range(C):
if not marked[B[i]-1]:
marked[B[i]-1] = True
count += 1
min_count = count
for i in range(C, A):
if not marked[B[i]-1]:
marked[B[i]-1] = True
count += 1
if not marked[B[i-C]-1]:
count -= 1
marked[B[i-C]-1] = False
min_count = min(min_count, count)
return min_count
Minimize Marked Fruits
Python
Trilogy
def count_xor_values(A):
def generate_subsequences(A, i, B):
if i == len(A):
if len(B) > 1 and all(B[j] < B[j+1] for j in range(len(B)-1)):
subsequences.append(B[:])
else:
generate_subsequences(A, i+1, B)
B.append(A[i])
generate_subsequences(A, i+1, B)
B.pop()
def count_set_bits(n):
count = 0
while n > 0:
count += n & 1
n >>= 1
return count
subsequences = []
generate_subsequences(A, 0, [])
xor_values = set()
for B in subsequences:
xor_value = B[0]
for i in range(1, len(B)):
xor_value ^= B[i]
if count_set_bits(xor_value) >= count_set_bits(B[i]):
xor_values.add(xor_value)
return len(xor_values)
