Coding | EXAMS | IBM ACCENTURE | VIRTUSA | IBM | AMAZON | TCS | EPAM | WILEY EDGE | TECH MAHINDRA | JPMORGAN | HCL | WIPRO
Ir al canal en Telegram
Main channel https://t.me/Coding_000 Contact Admin 👉 @ILOVEU_143 for booking your exam slots Web- https://coding000.github.io/Projects/ 💯% clearance in any placement exams OffCampus -https://t.me/Offcampus_000 Discussion- https://t.me/exams_discussion
Mostrar más3 365
Suscriptores
-124 horas
-47 días
-4530 días
Archivo de publicaciones
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)
ᴡᴇ ᴅᴏɴ'ᴛ ɴᴇᴇᴅ ᴀɴʏ ᴏᴛʜᴇʀ ᴛʜɪɴɢs ᴊᴜsᴛ ʀᴇᴀᴄᴛ ᴏɴ ᴘᴏsᴛs ᴀɴᴅ ᴍᴀᴋᴇ ᴜs ʜᴀᴘᴘʏ ❤️🤩
Share @Coding_000❤️
AnimatedSticker.tgs0.02 KB
XOR Subsequences
Python
def bit_count(x):
cnt = 0
while x > 0:
cnt += x & 1
x >>= 1
return cnt
n = int(input())
a = list(map(int, input().split()))
dp = [set() for i in range(n)]
dp[0].add((a[0],))
ans = 0
for i in range(1, n):
dp[i].add((a[i],))
for b in dp[i-1]:
if a[i] > b[-1]:
b2 = b + (a[i],)
dp[i].add(b2)
if len(b) > 1 and bit_count(b[-2] ^ b[-1]) == bit_count(b[-2] ^ a[i]):
b2 = b[:-1] + (a[i],)
dp[i].add(b2)
for b in dp[i]:
x = b[0]
for j in range(1, len(b)):
x ^= b[j]
ans |= x
print(bin(ans).count('1'))
ᴡᴇ ᴅᴏɴ'ᴛ ɴᴇᴇᴅ ᴀɴʏ ᴏᴛʜᴇʀ ᴛʜɪɴɢs ᴊᴜsᴛ ʀᴇᴀᴄᴛ ᴏɴ ᴘᴏsᴛs ᴀɴᴅ ᴍᴀᴋᴇ ᴜs ʜᴀᴘᴘʏ ❤️🤩
Share @Coding_000❤️
Good Arrays Code
C++
Trilogy Innovations
int n = arr.size();
int A = arr[0];
int B = arr[n-1];
int k = 0;
for (int i = 1; i < n-1; i++) {
if (arr[i] > A) {
k++;
}
}
long long ways = 1;
for (int i = 1; i <= k; i++) {
ways = (ways * i) % 1000000007;
}
return ways;
Good Arrays Code
C++
Trilogy Innovations
XOR Subsequences
Python
Trilogy Innovations
def bit_count(x):
cnt = 0
while x > 0:
cnt += x & 1
x >>= 1
return cnt
n = int(input())
a = list(map(int, input().split()))
dp = [set() for i in range(n)]
dp[0].add((a[0],))
ans = 0
for i in range(1, n):
dp[i].add((a[i],))
for b in dp[i-1]:
if a[i] > b[-1]:
b2 = b + (a[i],)
dp[i].add(b2)
if len(b) > 1 and bit_count(b[-2] ^ b[-1]) == bit_count(b[-2] ^ a[i]):
b2 = b[:-1] + (a[i],)
dp[i].add(b2)
for b in dp[i]:
x = b[0]
for j in range(1, len(b)):
x ^= b[j]
ans |= x
print(bin(ans).count('1'))
XOR Subsequences
Python
Trilogy Innovations
Good array code done..✅
contact @iloveu_143
Done with
WILEY EDGE ✅
or any exam help available 🔥💯
Book your slot
Contact here @ILOVEU_143❤️
100% clearance guarantee 🔥🔥
Willey edge exam help available at low rates ❤️
Contact:
@ILOVEU_143✅
Check my previous helps here @Coding_000❤️✅
https://instagram.com/hari__.88?igshid=MTIzZWQxMDU=
My instagram Link👆👆
Please Follow..If u have any doubts..we will discuss..😅😅
Willey edge exam help available at low rates ❤️
Contact:
@ILOVEU_143✅
Check my previous helps here @Coding_000❤️✅
Willey edge exam help available at low rates ❤️
Contact:
@ILOVEU_143✅
Check my previous helps here @Coding_000❤️✅
https://www.hackerearth.com/challenges/new/competitive/amazon-ml-challenge-2023/
Amazon ML Challenge is a two stage competition where students from all engineering campuses across India will get a unique opportunity to work on Amazon’s dataset to bring in fresh ideas and build innovative solutions for a real world problem statement. Top three winning teams will receive cash prizes and certificates.
Registrations will remain open from 3 April 2023 to 20 April 2023 11:59 PM IST. Participation starts from 21 April 2023 12 AM IST to 23 April 2023 11:59 PM IST.
How many of you are having
TCS NQT EXAM Today
Hit Like 👍 Button
For free answers🆓
Willey edge exam help available at low rates ❤️
Contact:
@ILOVEU_143✅
Check my previous helps here @Coding_000❤️✅
What is the difference between
I like you & I love you
Beautifully answered by Buddha :
When you like a flower, you just pluck it But when you love a flower, you water it daily !
One who understand this, understands life.
@ILOVEU_143 💙
Who got msg hit like
If u want help in Tcs Nqt
Contact @ILOVEU_143✅
✅ Those who want to clear TCS NQT exam April 14✅👍
Book your slots now
Don't waste your time in wrong attempts and don't miss the opportunity tcs is hiring in mass this time
✅💯 clearance and genuine help
✅✅ Few slots only
Note:- it's paid help
You are College students ?? 🤔
Do you want final year Major project ?? 🤔
Then don't Worry I will provide you ✌️
Project + project report Files+ PPT 👍
If you are interested then contact our group admin @ILOVEU_143 👨💻
¡Ya disponible! Investigación de Telegram 2025 — los principales insights del año 
