allcoding1
Photo
#include <iostream>
#include <vector>
#include <cmath>
#include <string>
#include <algorithm>
using namespace std;
int main()
{
vector<string> k = {"1234567890", "qwertyuiop", "asdfghjkl", "zxcvbnm"};
string w;
getline(cin, w);
transform(w.begin(), w.end(), w.begin(), ::tolower);
vector<string> words;
string temp;
for (char c : w)
{
if (c == ' ')
{
if (!temp.empty())
{
words.push_back(temp);
temp.clear();
}
}
else
{
temp += c;
}
}
if (!temp.empty())
{
words.push_back(temp);
}
int t = 0;
for (string v : words)
{
int l = v.length();
vector<int> r(l, -1);
vector<int> p(l, -1);
for (int i = 0; i < l; ++i)
{
bool f = false;
for (int j = 0; j < k.size(); ++j)
{
int c = k[j].find(v[i]);
if (c != string::npos)
{
r[i] = j;
p[i] = c;
f = true;
break;
}
}
if (!f)
{
break;
}
}
int c = 0;
for (int i = 1; i < l; ++i)
{
if (r[i] == r[i - 1] && abs(p[i] - p[i - 1]) <= 1)
{
c += 1;
}
else
{
if (c > 0)
{
if (r[i - 1] == -1)
{
t += 2;
}
else
{
t += 1;
}
c = 0;
}
}
}
if (c > 0)
{
if (r[l - 1] == -1)
{
t += 2;
}
else
{
t += 1;
}
}
}
cout << t << endl;
return 0;
}
#include <vector>
#include <cmath>
#include <string>
#include <algorithm>
using namespace std;
int main()
{
vector<string> k = {"1234567890", "qwertyuiop", "asdfghjkl", "zxcvbnm"};
string w;
getline(cin, w);
transform(w.begin(), w.end(), w.begin(), ::tolower);
vector<string> words;
string temp;
for (char c : w)
{
if (c == ' ')
{
if (!temp.empty())
{
words.push_back(temp);
temp.clear();
}
}
else
{
temp += c;
}
}
if (!temp.empty())
{
words.push_back(temp);
}
int t = 0;
for (string v : words)
{
int l = v.length();
vector<int> r(l, -1);
vector<int> p(l, -1);
for (int i = 0; i < l; ++i)
{
bool f = false;
for (int j = 0; j < k.size(); ++j)
{
int c = k[j].find(v[i]);
if (c != string::npos)
{
r[i] = j;
p[i] = c;
f = true;
break;
}
}
if (!f)
{
break;
}
}
int c = 0;
for (int i = 1; i < l; ++i)
{
if (r[i] == r[i - 1] && abs(p[i] - p[i - 1]) <= 1)
{
c += 1;
}
else
{
if (c > 0)
{
if (r[i - 1] == -1)
{
t += 2;
}
else
{
t += 1;
}
c = 0;
}
}
}
if (c > 0)
{
if (r[l - 1] == -1)
{
t += 2;
}
else
{
t += 1;
}
}
}
cout << t << endl;
return 0;
}
👍1
allcoding1
Photo
#include <bits/stdc++.h>
int getMinimumStress(int graph_nodes, int graph_edges, vector<pair<int, int>>& edges, vector<int>& weights, int source, int destination) {
Graph graph(graph_nodes + 1);
for (int i = 0; i < graph_edges; ++i) {
int u = edges[i].first;
int v = edges[i].second;
int w = weights[i];
graph[u].push_back({v, w});
graph[v].push_back({u, w});
}
priority_queue<pii, vector<pii>, greater<pii>> pq;
vector<int> min_stress(graph_nodes + 1, INT_MAX );
pq.push({0, source});
min_stress[source] = 0;
while (!pq.empty()) {
int curr_stress = pq.top().first;
int u = pq.top().second;
pq.pop();
if (u == destination) {
return curr_stress;
}
if (curr_stress > min_stress[u]) {
continue;
}
for (const auto& neighbor : graph[u]) {
int v = neighbor.first;
int weight = neighbor.second;
int next_stress = max(curr_stress, weight);
if (next_stress < min_stress[v]) {
min_stress[v] = next_stress;
pq.push({next_stress, v});
}
}
}
return -1;
}
int getMinimumStress(int graph_nodes, int graph_edges, vector<pair<int, int>>& edges, vector<int>& weights, int source, int destination) {
Graph graph(graph_nodes + 1);
for (int i = 0; i < graph_edges; ++i) {
int u = edges[i].first;
int v = edges[i].second;
int w = weights[i];
graph[u].push_back({v, w});
graph[v].push_back({u, w});
}
priority_queue<pii, vector<pii>, greater<pii>> pq;
vector<int> min_stress(graph_nodes + 1, INT_MAX );
pq.push({0, source});
min_stress[source] = 0;
while (!pq.empty()) {
int curr_stress = pq.top().first;
int u = pq.top().second;
pq.pop();
if (u == destination) {
return curr_stress;
}
if (curr_stress > min_stress[u]) {
continue;
}
for (const auto& neighbor : graph[u]) {
int v = neighbor.first;
int weight = neighbor.second;
int next_stress = max(curr_stress, weight);
if (next_stress < min_stress[v]) {
min_stress[v] = next_stress;
pq.push({next_stress, v});
}
}
}
return -1;
}
👍2
#include <iostream>
#include <vector>
#include <numeric>
using namespace std;
double solve(const vector<int>& cnts) {
vector<double> den = {0.20, 0.40, 1, 2, 5, 10};
double tot = 0.0;
for (size_t i = 0; i < cnts.size(); ++i) {
tot += cnts[i] * den[i];
}
return tot;
}
int main() {
vector<int> cnts;
int input;
while (cin >> input) {
cnts.push_back(input);
}
cout << solve(cnts) << endl;
return 0;
}
#include <vector>
#include <numeric>
using namespace std;
double solve(const vector<int>& cnts) {
vector<double> den = {0.20, 0.40, 1, 2, 5, 10};
double tot = 0.0;
for (size_t i = 0; i < cnts.size(); ++i) {
tot += cnts[i] * den[i];
}
return tot;
}
int main() {
vector<int> cnts;
int input;
while (cin >> input) {
cnts.push_back(input);
}
cout << solve(cnts) << endl;
return 0;
}
👍1
Ciena is hiring for Software Engineering DevOps New Grad
Expected Salary : 10-20 LPA
Batch : 2024/2023 passouts eligible
Apply here :
https://careers.ciena.com/us/en/job/CIENUSR025123ENUS/Software-Engineering-DevOps-New-Grad
Telegram:- @allcoding1
Expected Salary : 10-20 LPA
Batch : 2024/2023 passouts eligible
Apply here :
https://careers.ciena.com/us/en/job/CIENUSR025123ENUS/Software-Engineering-DevOps-New-Grad
Telegram:- @allcoding1
GenC PWD Hiring 2023 & 2024 Batch
Apply link 👇
https://app.joinsuperset.com/join/#/signup/student/jobprofiles/07a89094-b25f-4041-b191-5bd8eb09a5aa
Apply link 👇
https://app.joinsuperset.com/join/#/signup/student/jobprofiles/07a89094-b25f-4041-b191-5bd8eb09a5aa
👍5
🎯Tech Mahindra link open for 2024 Batch
Immediately apply before it closed
Apply Now:-
https://registration.techmahindra.com/Candidate/Instructions.aspx
Immediately apply before it closed
Apply Now:-
https://registration.techmahindra.com/Candidate/Instructions.aspx
🎯Shell is hiring for Interns
2025 batch eligible
Location : Bangalore/Gurgaon
Apply:-
https://jobs.shell.com/job/bengaluru/shell-assessed-internship-programme-2025-india/25244/67560377344
2025 batch eligible
Location : Bangalore/Gurgaon
Apply:-
https://jobs.shell.com/job/bengaluru/shell-assessed-internship-programme-2025-india/25244/67560377344
👍1
🎯Accenture
Job role:- Associate Software Engineer (ASE)
Experience: 0 Month - 11 Month(s)
Salary: INR 4,60,700 -
Job Type: Full Time
Location: Bangalore, Hyderabad, Pune, Mumbai, Chennai, Gurugram, Kolkata, Indore, Jaipur, Coimbatore, Ahmedabad, Bhubaneswar
Apply Now:- https://indiacampus.accenture.com/myzone/accenture/1/jobs/25377/job-details
Telegram:- @allcoding1
Job role:- Associate Software Engineer (ASE)
Experience: 0 Month - 11 Month(s)
Salary: INR 4,60,700 -
Job Type: Full Time
Location: Bangalore, Hyderabad, Pune, Mumbai, Chennai, Gurugram, Kolkata, Indore, Jaipur, Coimbatore, Ahmedabad, Bhubaneswar
Apply Now:- https://indiacampus.accenture.com/myzone/accenture/1/jobs/25377/job-details
Telegram:- @allcoding1
👍4
Meesho | SDE l - Android | 17 - 21 LPA ( expected ) | 1+ year experience | Bangalore
Link : https://meesho.io/jobs/android-developer---i?id=f35e1cae-5847-4b92-bd76-c0474197724f
Link : https://meesho.io/jobs/android-developer---i?id=f35e1cae-5847-4b92-bd76-c0474197724f
HCL is hiring 2023/2024 Batch
Eligibility: BBA
APPLY LINK
https://forms.office.com/pages/responsepage.aspx?id=N-edGDrJWk-LaG9MqZQZEn1JaGPZlC1ChKI35Gw0sAtUNzdRRFY4SzNHMDVZNk04SlZXTU5UVlZUVy4u
Eligibility: BBA
APPLY LINK
https://forms.office.com/pages/responsepage.aspx?id=N-edGDrJWk-LaG9MqZQZEn1JaGPZlC1ChKI35Gw0sAtUNzdRRFY4SzNHMDVZNk04SlZXTU5UVlZUVy4u
🎯Cognizant PWD off-campus hiring | Registrations open for 2023 & 2024 graduates
Greetings from Cognizant
At Cognizant, we believe in hiring and partnering with the best to engineer excellence for leading businesses around the world. We are pleased to announce that our PwD (Persons with Disabilities) off-campus hiring is live.
This opportunity is open for any B.E / B.Tech / M.E / M. Tech/ MCA/ MSc (IT/CS) or MS Software engineering (streams such as Leather, Food, Fashion, etc.. are excluded) students from 2023, 2024 batch with a proof of disability certificate.
We are happy to share the registration link for candidates interested to work in Cognizant and accelerate their careers. Registration link present in the attached mail. Kindly circulate it to interested candidates for them to apply.
Apply Now:- https://app.joinsuperset.com/company/cognizant/
Greetings from Cognizant
At Cognizant, we believe in hiring and partnering with the best to engineer excellence for leading businesses around the world. We are pleased to announce that our PwD (Persons with Disabilities) off-campus hiring is live.
This opportunity is open for any B.E / B.Tech / M.E / M. Tech/ MCA/ MSc (IT/CS) or MS Software engineering (streams such as Leather, Food, Fashion, etc.. are excluded) students from 2023, 2024 batch with a proof of disability certificate.
We are happy to share the registration link for candidates interested to work in Cognizant and accelerate their careers. Registration link present in the attached mail. Kindly circulate it to interested candidates for them to apply.
Apply Now:- https://app.joinsuperset.com/company/cognizant/
👍1😱1
🎯Infor is hiring for Quality Analyst, Associate
0 - 1 year experience
https://careers.infor.com/en_US/careers/JobDetail/Quality-Assurance-Analyst-Associate/14544#
0 - 1 year experience
https://careers.infor.com/en_US/careers/JobDetail/Quality-Assurance-Analyst-Associate/14544#
👍1
Bajaj Finserve is hiring for Software Engineer role
2 - 3 year experience is required
https://bflcareers.peoplestrong.com/portal/job/detail/JR00150141
2 - 3 year experience is required
https://bflcareers.peoplestrong.com/portal/job/detail/JR00150141
Accenture is hiring for Experienced Professionals
Application Developer Role
2+ year experience is required
Upto 10 LPA ( expected )
https://www.accenture.com/in-en/careers/jobdetails?src=LINKEDINJP&id=ATCI-4328054-S1677439_en
Application Developer Role
2+ year experience is required
Upto 10 LPA ( expected )
https://www.accenture.com/in-en/careers/jobdetails?src=LINKEDINJP&id=ATCI-4328054-S1677439_en
👍1
Kyndryl is hiring for Application Developer
Bangalore
Partically Remote
Apply Fast , this job is posted today !
https://kyndryl.wd5.myworkdayjobs.com/KyndrylProfessionalCareers/job/Bangalore-Karnataka-India/Application-Developer_R-19516-1?source=REC_APPLICANT_SOURCE_LinkedIn
Bangalore
Partically Remote
Apply Fast , this job is posted today !
https://kyndryl.wd5.myworkdayjobs.com/KyndrylProfessionalCareers/job/Bangalore-Karnataka-India/Application-Developer_R-19516-1?source=REC_APPLICANT_SOURCE_LinkedIn
👍1
De Shaw hiring Software Engineer
30 LPA
2024 batch
Apply Now:-
https://www.deshawindia.com/careers/associate-qae-qte-fte-off-campus-2024-grads-5482
30 LPA
2024 batch
Apply Now:-
https://www.deshawindia.com/careers/associate-qae-qte-fte-off-campus-2024-grads-5482
👍3