COGNIZANT EXAM HELP GROUP
3.55K subscribers
5.3K photos
21 videos
10 files
3.22K links
πŸš€ Placement Preparation Hub

πŸŽ“ From Preparation to Placement

⚑ OA Support β€’ Coding β€’ Aptitude β€’ Technical β€’ HR

🌟 Trusted by Hundreds of Students

πŸ† 372+ Placement Successes βœ…

πŸ“© DM: @Mrtrueliving_ix

πŸ’™ Turning Aspirations into Offer Letters.
Download Telegram
#include <bits/stdc++.h>
using namespace std;

struct T {
int s, e, p;
};

int findLast(vector<T>& t, int i) {
int l = 0, h = i - 1, r = -1;
while (l <= h) {
int m = l + (h - l) / 2;
if (t[m].e <= t[i].s) {
r = m;
l = m + 1;
} else {
h = m - 1;
}
}
return r;
}

int maxP(int n, vector<T>& t) {
if (!n) return 0;

sort(t.begin(), t.end(), [](const T& a, const T& b) {
return a.e == b.e ? a.s < b.s : a.e < b.e;
});

vector<long long> dp(n + 1, 0);
for (int i = 0; i < n; i++) {
dp[i + 1] = dp[i];
int j = findLast(t, i);
if (j != -1) {
dp[i + 1] = max(dp[i + 1], dp[j + 1] + t[i].p);
} else {
dp[i + 1] = max(dp[i + 1], (long long)t[i].p);
}
}
return dp[n];
}

int main() {
int n, m;
cin >> n >> m;
vector<T> t(n);
for (int i = 0; i < n; i++) {
cin >> t[i].s >> t[i].e >> t[i].p;
}
cout << maxP(n, t) << endl;
return 0;
}


N- trolley βœ”οΈ
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ”₯2❀1🫑1
n = int(input())
s = list(map(int, input().split()))
m = int(input())
r = list(map(int, input().split()))

ss = set(s)
sr = set(r)
fs = [x for x in s if x in sr]
fr = [x for x in r if x in ss]

fn, fm = len(fs), len(fr)
if not fn or not fm:
print(0)
exit()

dp = [[0] * (fm + 1) for _ in range(fn + 1)]
for i in range(1, fn + 1):
for j in range(1, fm + 1):
if fs[i-1] == fr[j-1]:
dp[i][j] = dp[i-1][j-1] + 1
else:
dp[i][j] = max(dp[i-1][j], dp[i][j-1])

print(dp[fn][fm])

Network βœ”οΈ
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘1
#include <bits/stdc++.h>
using namespace std;

int main() {
int n;
cin >> n;
vector<int> s(n);
for (int i = 0; i < n; i++) cin >> s[i];
int m;
cin >> m;
vector<int> r(m);
for (int i = 0; i < m; i++) cin >> r[i];

set<int> ss(s.begin(), s.end()), sr(r.begin(), r.end());
vector<int> fs, fr;
for (int x : s) if (sr.count(x)) fs.push_back(x);
for (int x : r) if (ss.count(x)) fr.push_back(x);

int fn = fs.size(), fm = fr.size();
if (!fn || !fm) {
cout << 0 << endl;
return 0;
}

vector<vector<int>> dp(fn + 1, vector<int>(fm + 1, 0));
for (int i = 1; i <= fn; i++) {
for (int j = 1; j <= fm; j++) {
if (fs[i-1] == fr[j-1]) dp[i][j] = dp[i-1][j-1] + 1;
else dp[i][j] = max(dp[i-1][j], dp[i][j-1]);
}
}

cout << dp[fn][fm] << endl;
return 0;
}

Network - cpp βœ”οΈ
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘2❀1
Add your friends help them to succeed πŸ’―πŸŽ‰

https://t.me/code_alphix
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘1
JUSPAY Help available....


DM
@Mrtrueliving_ix βœ…

Test clearance 100 %
πŸŽ‰βœ…
Please open Telegram to view this post
VIEW IN TELEGRAM
Vonage Help Available...βœ”οΈ

DM
@Mrtrueliving_ix

Test clearance πŸ’―
πŸ’―πŸŽ‰
Please open Telegram to view this post
VIEW IN TELEGRAM
JUSPAY Help done βœ”οΈπŸŽ‰

Test accomplished πŸͺ„

DM For Help
@Mrtrueliving_ix
@Mrtrueliving_ix

#JUSPAY #ONCAMPUS

All placement help available 😍
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘2❀1
Cognizant Technical Help available...

βœ”οΈ all cluster available

βœ”οΈpy , Java , csharp

Those who need πŸ’― test Clearance

DM @Mrtrueliving_ix πŸŽ‰

Previous helping proofs & placement offers

https://t.me/code_alphix/5976

https://t.me/code_alphix/5947

https://t.me/code_alphix/5869?single
Please open Telegram to view this post
VIEW IN TELEGRAM
🫑2❀1
Cognizant Mock test.....πŸ‘


DM for Cognizant slots

All slots are available

Test clearance 100%

DM
@Mrtrueliving_ix

@Mrtrueliving_ix
❀1πŸ”₯1🫑1
Cognizant next Phase batch help available .

βœ… Aptitude

βœ… Communication

βœ… Technical help...

DM for Help

@Mrtrueliving_ix @Mrtrueliving_ix

Test clearance πŸ’―


https://t.me/code_alphix/5869?single

https://t.me/code_alphix/4862?single

https://t.me/code_alphix/4636
Cognizant 9 am all SQL are Done βœ…

DM
@Mrtrueliving_ix ☺️

#paid only 🫑
Java & python Codes are available

DM @Mrtrueliving_ix
Cognizant 9 am || cluster 2 Help done βœ…

Test accomplished ❀️

DM those who need πŸ’― Test Clearance

@Mrtrueliving_ix

@Mrtrueliving_ix

#Cognizant #Offcampus

All placement help available βœ”οΈ
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
class UserMainCode(object):
@classmethod
def stallchoices(cls, input1, input2, input3):
count = 0
for w, q in input2:
if input3 % w == 0 and input3 // w <= q:
count += 1
return count

Stall choices πŸ‘
❀1πŸ‘1
public class UserMainCode {
public static int originalArray(int input1, int[] input2) {
LinkedHashSet<Integer> set = new LinkedHashSet<>();
for (int i : input2) set.add(i);
return set.size();
}


OrginalArrayπŸ‘

class UserMainCode(object):
@classmethod
def originalArray(cls, input1, input2):
return len(dict.fromkeys(input2))
❀1πŸ‘1