IMS - Off Campus - 2024
Hexaware Technologies Limited ยท Mumbai,Pune,Chennai
https://app.joinsuperset.com/join/#/signup/student/jobprofiles/45f5ed91-e4a5-4fc4-a2d8-9cd88836b79c
Hexaware Technologies Limited ยท Mumbai,Pune,Chennai
https://app.joinsuperset.com/join/#/signup/student/jobprofiles/45f5ed91-e4a5-4fc4-a2d8-9cd88836b79c
๐3
Placements Help Available ๐๐
If you also want to crack your current placements
Contact: @ILOVEU_143
Book your slots ASAP
Scroll above and check the work
๐ฏ Clearence @Coding_000
Note: It's paid๐ถ๐ค
โ Shareโ Shareโ Share โ shareโ
If you also want to crack your current placements
Contact: @ILOVEU_143
Book your slots ASAP
Scroll above and check the work
๐ฏ Clearence @Coding_000
Note: It's paid๐ถ๐ค
โ Shareโ Shareโ Share โ shareโ
๐2
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
Join now @Offcampus_000
๐ฅ๐ฅ
Latest Jobs and Internships Updates for 2021,2022, 2023 and 2024 Batch
๐2
Placements Help Available ๐๐
If you also want to crack your current placements
Contact: @ILOVEU_143
Book your slots ASAP
Scroll above and check the work
๐ฏ Clearence @Coding_000
Note: It's paid๐ถ๐ค
โ Shareโ Shareโ Share โ shareโ
If you also want to crack your current placements
Contact: @ILOVEU_143
Book your slots ASAP
Scroll above and check the work
๐ฏ Clearence @Coding_000
Note: It's paid๐ถ๐ค
โ Shareโ Shareโ Share โ shareโ
๐2
๐1๐ฅ1
Attention everyone!!
Those who need help for Cognizant, Accenture, Revature or any placement tests clearance should contact @ILOVEU_143๐จโ๐ป๐ and book your slots โ
100% CLEARANCE โ ๐จโ๐ป
Remote access available๐ค
Telegram: @ILOVEU_143โ
SHARE @coding_000โ ๐จโ๐ป
Those who need help for Cognizant, Accenture, Revature or any placement tests clearance should contact @ILOVEU_143๐จโ๐ป๐ and book your slots โ
100% CLEARANCE โ ๐จโ๐ป
Remote access available๐ค
Telegram: @ILOVEU_143โ
SHARE @coding_000โ ๐จโ๐ป
๐2
Who have Infosys exam guys??
Join this group and share our channel i will share all codes ๐๐จโ๐ป
@CODING_000๐จโ๐ป๐
https://t.me/Coding_000 ๐จโ๐ป๐
https://t.me/Coding_000 ๐จโ๐ป๐
https://t.me/Coding_000 ๐จโ๐ป๐
https://t.me/Coding_000 ๐จโ๐ป๐
Share โ share โ share โ
Join this group and share our channel i will share all codes ๐๐จโ๐ป
@CODING_000๐จโ๐ป๐
https://t.me/Coding_000 ๐จโ๐ป๐
https://t.me/Coding_000 ๐จโ๐ป๐
https://t.me/Coding_000 ๐จโ๐ป๐
https://t.me/Coding_000 ๐จโ๐ป๐
Share โ share โ share โ
๐2
Join this group and share our channel i will share all Infosys codes ๐๐จโ๐ป
@CODING_000๐จโ๐ป๐
https://t.me/Coding_000 ๐จโ๐ป๐
https://t.me/Coding_000 ๐จโ๐ป๐
https://t.me/Coding_000 ๐จโ๐ป๐
https://t.me/Coding_000 ๐จโ๐ป๐
Share โ share โ share โ
@CODING_000๐จโ๐ป๐
https://t.me/Coding_000 ๐จโ๐ป๐
https://t.me/Coding_000 ๐จโ๐ป๐
https://t.me/Coding_000 ๐จโ๐ป๐
https://t.me/Coding_000 ๐จโ๐ป๐
Share โ share โ share โ
๐3
How many Of u writing Infosys Exam Today ?
Give reactions....โค๏ธ
Based on reactions i will help...โ
Otherwise I will sleep..๐ด
Share our channel make 4.5k ๐ฏ๐ฏ
Share @coding_000โค๏ธโ
Give reactions....โค๏ธ
Based on reactions i will help...โ
Otherwise I will sleep..๐ด
Share our channel make 4.5k ๐ฏ๐ฏ
Share @coding_000โค๏ธโ
โค9๐3
NoBody sharing ๐ข๐
Our channel @Coding_000โค๏ธ
Our channel @Coding_000โค๏ธ
Good Sets
int solve(const string& s) {
vector<int> lc;
for (int i = 0; i < s.size(); ++i) {
if (islower(s[i])) {
lc.push_back(i);
}
}
int m = 0;
int c = 0;
int p = -1;
for (int i : lc) {
if (p == -1 || s.substr(p + 1, i - p).compare(s.substr(p + 1, i - p)) != 0) {
c += 1;
} else {
c = 1;
}
m = max(m, c);
p = i;
}
return m;
}
int solve(const string& s) {
vector<int> lc;
for (int i = 0; i < s.size(); ++i) {
if (islower(s[i])) {
lc.push_back(i);
}
}
int m = 0;
int c = 0;
int p = -1;
for (int i : lc) {
if (p == -1 || s.substr(p + 1, i - p).compare(s.substr(p + 1, i - p)) != 0) {
c += 1;
} else {
c = 1;
}
m = max(m, c);
p = i;
}
return m;
}
๐ฅ1
#include <iostream>
#include <unordered_set>
#include <string>
using namespace std;
void generateSubstrings(const string &s, int len, unordered_set<string> &substrings) {
for (int i = 0; i <= s.size() - len; ++i) {
substrings.insert(s.substr(i, len));
}
}
string findMinimalString(const string &s) {
unordered_set<string> substrings;
for (int len = 1; ; ++len) {
substrings.clear();
generateSubstrings(s, len, substrings);
string candidate(len, 'a');
while (true) {
if (substrings.find(candidate) == substrings.end()) {
return candidate;
}
int pos = len - 1;
while (pos >= 0 && candidate[pos] == 'z') {
candidate[pos] = 'a';
--pos;
}
if (pos < 0) break;
++candidate[pos];
}
}
}
int main() {
string S;
cin >> S;
cout << findMinimalString(S) << endl;
return 0;
}.
// Minimal String
Infosys โ
#include <unordered_set>
#include <string>
using namespace std;
void generateSubstrings(const string &s, int len, unordered_set<string> &substrings) {
for (int i = 0; i <= s.size() - len; ++i) {
substrings.insert(s.substr(i, len));
}
}
string findMinimalString(const string &s) {
unordered_set<string> substrings;
for (int len = 1; ; ++len) {
substrings.clear();
generateSubstrings(s, len, substrings);
string candidate(len, 'a');
while (true) {
if (substrings.find(candidate) == substrings.end()) {
return candidate;
}
int pos = len - 1;
while (pos >= 0 && candidate[pos] == 'z') {
candidate[pos] = 'a';
--pos;
}
if (pos < 0) break;
++candidate[pos];
}
}
}
int main() {
string S;
cin >> S;
cout << findMinimalString(S) << endl;
return 0;
}.
// Minimal String
Infosys โ
๐3๐ฅ1
#include <iostream>
#include <vector>
using namespace std;
vector<bool> sieve(int max_val) {
vector<bool> is_prime(max_val + 1, true);
is_prime[0] = is_prime[1] = false;
for (int i = 2; i * i <= max_val; ++i) {
if (is_prime[i]) {
for (int j = i * i; j <= max_val; j += i) {
is_prime[j] = false;
}
}
}
return is_prime;
}
int main() {
int N;
cin >> N;
vector<int> A(N);
int max_val = 0;
for (int i = 0; i < N; ++i) {
cin >> A[i];
if (A[i] > max_val) {
max_val = A[i];
}
}
vector<bool> is_prime = sieve(max_val);
int prime_count = 0, composite_count = 0;
for (int i = 0; i < N; ++i) {
if (is_prime[A[i]]) {
prime_count++;
} else {
composite_count++;
}
}
int good_pairs = prime_count * composite_count;
cout << good_pairs << endl;
return 0;
}.
find good pairs in array
Infosys โ
#include <vector>
using namespace std;
vector<bool> sieve(int max_val) {
vector<bool> is_prime(max_val + 1, true);
is_prime[0] = is_prime[1] = false;
for (int i = 2; i * i <= max_val; ++i) {
if (is_prime[i]) {
for (int j = i * i; j <= max_val; j += i) {
is_prime[j] = false;
}
}
}
return is_prime;
}
int main() {
int N;
cin >> N;
vector<int> A(N);
int max_val = 0;
for (int i = 0; i < N; ++i) {
cin >> A[i];
if (A[i] > max_val) {
max_val = A[i];
}
}
vector<bool> is_prime = sieve(max_val);
int prime_count = 0, composite_count = 0;
for (int i = 0; i < N; ++i) {
if (is_prime[A[i]]) {
prime_count++;
} else {
composite_count++;
}
}
int good_pairs = prime_count * composite_count;
cout << good_pairs << endl;
return 0;
}.
find good pairs in array
Infosys โ
๐1๐ฅ1
Swap and delete string
๐ฅ1
๐1๐ฅ1