Please open Telegram to view this post
VIEW IN TELEGRAM
🔥1🍾1
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥1
public class MariaMathTeacher {
public static int sumDivisibleByX(int N, int X) {
int[] A = new int[N];
for (int i = 0; i < N; i++) {
A[i] = i + 1;
}
int[] B = new int[N];
for (int i = 0; i < N - 1; i++) {
B[i] = A[i] + A[i + 1];
}
B[N - 1] = A[N - 1] + A[0];
int sum = 0;
for (int i = 0; i < N; i++) {
if (B[i] % X == 0) {
sum += B[i];
}
}
return sum;
}
}Wipro Elite successfully cleared ▶️
Prev :
https://t.me/code_alphix/2761?single
All placement help available
DM for test clearance ❤️
@mrtrueliving_ix
@mrtrueliving_ix
#Wipro #Elite #Round1 #SVAR
Prev :
https://t.me/code_alphix/2761?single
All placement help available
DM for test clearance ❤️
@mrtrueliving_ix
@mrtrueliving_ix
#Wipro #Elite #Round1 #SVAR
Please open Telegram to view this post
VIEW IN TELEGRAM
def finalState(operations):
if not operations:
return 0
max_index = 0
for left, right in operations:
max_index = max(max_index, right)
states = [False] * (max_index + 1)
toggles = [0] * (max_index + 2)
for left, right in operations:
toggles[left] += 1
if right + 1 <= max_index:
toggles[right + 1] -= 1
toggle_count = 0
for i in range(max_index + 1):
toggle_count += toggles[i]
if toggle_count % 2 == 1:
states[i] = not states[i]
sum_indices = 0
for i in range(max_index + 1):
if states[i]:
sum_indices += i
return sum_indices
Please open Telegram to view this post
VIEW IN TELEGRAM
def getLargestSubsequence(s):
n = len(s)
ans = []
for length in range(1, n + 1):
k = n - length
curr = []
for ch in s:
while curr and curr[-1] < ch and k > 0:
curr.pop()
k -= 1
curr.append(ch)
while curr and k > 0:
curr.pop()
k -= 1
ans.append(''.join(curr))
return ans
getLargestSubsequence // Oracle
Please open Telegram to view this post
VIEW IN TELEGRAM
IBM
Role DevOps
Test accomplished👍
Both coding are done👍 📱
All placement help available
DM for Test Clearance
@mrtrueliving_ix
@mrtrueliving_ix
Role DevOps
Test accomplished
Both coding are done
All placement help available
DM for Test Clearance
@mrtrueliving_ix
@mrtrueliving_ix
Please open Telegram to view this post
VIEW IN TELEGRAM
def getMaxEfficiency(arrivalTime):IBM
arrivalTime.sort()
n = len(arrivalTime)
max_efficiency = float('-inf')
i = 0
for j in range(n):
tested_cases = j - i + 1
active_time = arrivalTime[j] - arrivalTime[i]
efficiency = tested_cases - active_time
max_efficiency = max(max_efficiency, efficiency)
while active_time >= tested_cases:
i += 1
active_time = arrivalTime[j] - arrivalTime[i]
tested_cases = j - i + 1
return max_efficiency
Successfully cleared 💯
Prev:
https://t.me/code_alphix/2518?single
DM for help
@mrtrueliving_ix📱
@mrtrueliving_ix📱
@mrtrueliving_ix📱
All placement help available
#Cognizant #Technical #Genc_next
Prev:
https://t.me/code_alphix/2518?single
DM for help
@mrtrueliving_ix
@mrtrueliving_ix
@mrtrueliving_ix
All placement help available
#Cognizant #Technical #Genc_next
Please open Telegram to view this post
VIEW IN TELEGRAM
🎉1🏆1🍾1
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Cognizant GencNext 📱
Test accomplished 🫡
All sections are done 😊
DM for clearance ❤️
@mrtrueliving_ix 👌
@mrtrueliving_ix 👌
#Cognizant #Genc_Next 📱
Prev: https://t.me/code_alphix/2518?single
https://t.me/code_alphix/2512
All placement help available