public int[] exponentialSeries(int input1, int input2, int input3) {
List<Integer> r = new ArrayList<>();
for (int ss = input1; ss <= input3; ss *= input2) {
r.add(ss);
}
int[] a = r.stream().mapToInt(i -> i).toArray();
for (int i = 0; i < 1000; i++) {}
return a;
}ExponentialSeries// CTS
Please open Telegram to view this post
VIEW IN TELEGRAM
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Todo List</title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<style>
button {
cursor: pointer;
}
</style>
</head>
<body>
<h1>Todo List</h1>
<input type="text" id="todo-input" placeholder="Enter task">
<button id="add-btn">Add</button>
<ul id="todo-list"></ul>
<script>
$(document).ready(function() {
$('#add-btn').click(function() {
let task = $('#todo-input').val();
if (task) {
$('#todo-list').append(`<li>${task} <button class="delete-btn">Delete</button></li>`);
$('#todo-input').val('');
}
});
$('#todo-list').on('click', '.delete-btn', function() {
$(this).parent().remove();
});
});
</script>
</body>
</html>
Todo // cts
👍1
This media is not supported in your browser
VIEW IN TELEGRAM
Todo // Cognizant
Please open Telegram to view this post
VIEW IN TELEGRAM
Cognizant technical {27 || 2pm}
Cluster 1 { java ,SQL, simulator} are done 💯▶️
Test accomplished📱
DM for test clearance
@mrtrueliving_ix👍
@mrtrueliving_ix👍
Test accomplished ❤️
Prev:https://t.me/code_alphix/2554
#Cognizant #Technical #Cluster1
Cluster 1 { java ,SQL, simulator} are done 💯
Test accomplished
DM for test clearance
@mrtrueliving_ix
@mrtrueliving_ix
Test accomplished ❤️
Prev:https://t.me/code_alphix/2554
#Cognizant #Technical #Cluster1
Please open Telegram to view this post
VIEW IN TELEGRAM
🎉1👌1🍾1
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