Roomba Shaped Robots โ
Python 3(Amazon)
Python 3(Amazon)
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll solve(int n, int m, vector<ll> f, vector<ll> b) {
vector<pair<ll, int>> v;
for(int i=0; i<n+m; i++) {
v.push_back({min(f[i], b[i]), f[i] <= b[i]});
}
sort(v.begin(), v.end());
int s = 0, e = 0;
ll cost = 0;
for(int i=n+m-1; i>=0; i--) {
if((v[i].second && s < n) || e == m) {
s++;
cost += f[i];
} else {
e++;
cost += b[i];
}
}
if(s < n || e < m) {
return -1;
}
return cost;
}
int main() {
int n, m;
cin >> n >> m;
vector<ll> f(n+m), b(n+m);
for(int i=0; i<n+m; i++) {
cin >> f[i];
}
for(int i=0; i<n+m; i++) {
cin >> b[i];
}
cout << solve(n, m, f, b) << endl;
return 0;
}
Hiring Drive โ
using namespace std;
typedef long long ll;
ll solve(int n, int m, vector<ll> f, vector<ll> b) {
vector<pair<ll, int>> v;
for(int i=0; i<n+m; i++) {
v.push_back({min(f[i], b[i]), f[i] <= b[i]});
}
sort(v.begin(), v.end());
int s = 0, e = 0;
ll cost = 0;
for(int i=n+m-1; i>=0; i--) {
if((v[i].second && s < n) || e == m) {
s++;
cost += f[i];
} else {
e++;
cost += b[i];
}
}
if(s < n || e < m) {
return -1;
}
return cost;
}
int main() {
int n, m;
cin >> n >> m;
vector<ll> f(n+m), b(n+m);
for(int i=0; i<n+m; i++) {
cin >> f[i];
}
for(int i=0; i<n+m; i++) {
cin >> b[i];
}
cout << solve(n, m, f, b) << endl;
return 0;
}
Hiring Drive โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
SDE-1 & UI-1_2024 Batch (Wonder Women in Tech) | Zain Inhonvi | 83 comments
**To all aspiring women engineers !! Flipkart is looking to Hire
WWIT (Wonder Women in Tech )**
Are you ready to embark on an exciting journey, and are passionate to kick-start your career in software development or UI Engg? Then wait no more, as we areโฆ
WWIT (Wonder Women in Tech )**
Are you ready to embark on an exciting journey, and are passionate to kick-start your career in software development or UI Engg? Then wait no more, as we areโฆ
Valid BST Permutationsโ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
We are looking for an MBA Fresher specialization into Finance & Accounting with an excellent communication & Interpersonal skill.
Flexible to work in a US shift with Sat-Sun fixed off.
Job Location - Ghansoli, Navi Mumbai.
Compensation depends on market standard.
Interested candidate's email: ProtisthaP@hexaware.com with a subject line of "Job Application for MBA fresher".
Flexible to work in a US shift with Sat-Sun fixed off.
Job Location - Ghansoli, Navi Mumbai.
Compensation depends on market standard.
Interested candidate's email: ProtisthaP@hexaware.com with a subject line of "Job Application for MBA fresher".
๐1
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <string>
#include <vector>
using namespace std;
const int MX = 26;
void cnt(const string& s, vector<int>& f, int l) {
for (int i = 0; i < l; i++) {
f[s[i] - 'a']++;
}
}
bool pal(const vector<int>& f, int l) {
int odd = 0;
for (int i = 0; i < MX; i++) {
if (f[i] % 2 != 0) {
odd++;
}
}
if (l % 2 == 0) {
if (odd > 0) {
return false;
} else {
return true;
}
}
if (odd != 1) {
return false;
}
return true;
}
string oddAndRem(vector<int>& f) {
string o = "";
for (int i = 0; i < MX; i++) {
if (f[i] % 2 != 0) {
f[i] -= 1;
o += i + 'a';
return o;
}
}
return o;
}
string encPwd(const string& pwd) {
string s = pwd;
int l = s.size();
vector<int> f(MX, 0);
cnt(s, f, l);
if (!pal(f, l)) {
return "No Palindromic String";
}
string odd = oddAndRem(f);
string front = "";
string rear = " ";
for (int i = 0; i < MX; i++) {
string temp = "";
if (f[i] != 0) {
char ch = i + 'a';
for (int j = 1; j <= f[i] / 2; j++) {
temp += ch;
}
front += temp;
rear = temp + rear;
}
}
return front + odd + rear;
}
Palindromic Password โ
#include <vector>
using namespace std;
const int MX = 26;
void cnt(const string& s, vector<int>& f, int l) {
for (int i = 0; i < l; i++) {
f[s[i] - 'a']++;
}
}
bool pal(const vector<int>& f, int l) {
int odd = 0;
for (int i = 0; i < MX; i++) {
if (f[i] % 2 != 0) {
odd++;
}
}
if (l % 2 == 0) {
if (odd > 0) {
return false;
} else {
return true;
}
}
if (odd != 1) {
return false;
}
return true;
}
string oddAndRem(vector<int>& f) {
string o = "";
for (int i = 0; i < MX; i++) {
if (f[i] % 2 != 0) {
f[i] -= 1;
o += i + 'a';
return o;
}
}
return o;
}
string encPwd(const string& pwd) {
string s = pwd;
int l = s.size();
vector<int> f(MX, 0);
cnt(s, f, l);
if (!pal(f, l)) {
return "No Palindromic String";
}
string odd = oddAndRem(f);
string front = "";
string rear = " ";
for (int i = 0; i < MX; i++) {
string temp = "";
if (f[i] != 0) {
char ch = i + 'a';
for (int j = 1; j <= f[i] / 2; j++) {
temp += ch;
}
front += temp;
rear = temp + rear;
}
}
return front + odd + rear;
}
Palindromic Password โ
public static boolean check(long s, long dis, long dur) {
return (18 * dis) % (10 * s * dur) >= (5 * s * dur);
}
public static int solve(List<Integer> a) {
int ans = 100;
int n = a.size();
for (int i = 0; i < n; i += 2) {
if (check(ans, a.get(i), a.get(i + 1))) {
ans--;
i = -2;
}
}
return ans;
}
Cruise Control โ
return (18 * dis) % (10 * s * dur) >= (5 * s * dur);
}
public static int solve(List<Integer> a) {
int ans = 100;
int n = a.size();
for (int i = 0; i < n; i += 2) {
if (check(ans, a.get(i), a.get(i + 1))) {
ans--;
i = -2;
}
}
return ans;
}
Cruise Control โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Fresher...!!
Company Name-Ramy Infotech Pvt Ltd.
Qualifications : BCA/B.Tech/MBA/MCA
Position : Business Development Executive /Technical Recruiter
Location : Noida Sector 62, Uttar Pradesh
Job Type : Full-time
Shift : Night
Timing : 7:00 PM to 4:30 AM
5 Days working
Looking forward to connect with the TPOs and Placement cells of Colleges and Institutes who can provide us candidates with BCA/B.Tech/MCA background for Noida location.
Interested universities/ colleges TPO and Placement cells are requested to share their details in a comment or can reach to me at tanya@ramyinfotech.com/hr@ramyinfotech.com /+918700758012
Company Name-Ramy Infotech Pvt Ltd.
Qualifications : BCA/B.Tech/MBA/MCA
Position : Business Development Executive /Technical Recruiter
Location : Noida Sector 62, Uttar Pradesh
Job Type : Full-time
Shift : Night
Timing : 7:00 PM to 4:30 AM
5 Days working
Looking forward to connect with the TPOs and Placement cells of Colleges and Institutes who can provide us candidates with BCA/B.Tech/MCA background for Noida location.
Interested universities/ colleges TPO and Placement cells are requested to share their details in a comment or can reach to me at tanya@ramyinfotech.com/hr@ramyinfotech.com /+918700758012
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Attack Capital |Full Stack Engineer Intern | 2024, 2025 Grads
https://linkedin.com/jobs/view/3918548751/
https://linkedin.com/jobs/view/3918548751/
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
UI/UX intern hiring
https://www.linkedin.com/posts/rakhipal_were-hiring-for-the-following-roles-to-join-activity-7193870948595384320-dnRj
https://www.linkedin.com/posts/rakhipal_were-hiring-for-the-following-roles-to-join-activity-7193870948595384320-dnRj
Linkedin
Rakhi Pal on LinkedIn: We're hiring for the following roles to join us from our Pune office -โฆ | 46 comments
We're hiring for the following roles to join us from our Pune office -
Business Development Associate
HR Manager
UI/UX Intern
Marketing Interns
Share yourโฆ | 46 comments on LinkedIn
Business Development Associate
HR Manager
UI/UX Intern
Marketing Interns
Share yourโฆ | 46 comments on LinkedIn
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Machine Learning Intern hiring ar Nurix Labs
https://www.linkedin.com/posts/anujkrmodi_aijobs-machinelearning-internship-activity-7194619576305819648-Msme
https://www.linkedin.com/posts/anujkrmodi_aijobs-machinelearning-internship-activity-7194619576305819648-Msme
Linkedin
Anuj Modi on LinkedIn: #aijobs #machinelearning #internship #startuplife #generativeai | 23 comments
We're Hiring! Machine Learning Interns at Nurix Labs
Are you passionate about the future of artificial intelligence and eager to gain hands-on experience at aโฆ | 23 comments on LinkedIn
Are you passionate about the future of artificial intelligence and eager to gain hands-on experience at aโฆ | 23 comments on LinkedIn
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
we are looking for freshers willing to be an ESG research professional.
If you are interested, please drop me an email at isha.rai@wipro.com
Eligibility Criteria:
Experience: 0-1 year
Location: Gurgaon & Pune
Educational Background:
* Commerce/Science/Economics graduate (required)
* MBA in Finance/Economics/Sustainability (preferred)
Technical Capabilities:
* Basic awareness about ESG, sustainability, CSR, greenhouse gas emissions, renewable energy, sustainable finance, carbon footprint
* Ability to apply concepts learned during MBA or graduation
If you are interested, please drop me an email at isha.rai@wipro.com
Eligibility Criteria:
Experience: 0-1 year
Location: Gurgaon & Pune
Educational Background:
* Commerce/Science/Economics graduate (required)
* MBA in Finance/Economics/Sustainability (preferred)
Technical Capabilities:
* Basic awareness about ESG, sustainability, CSR, greenhouse gas emissions, renewable energy, sustainable finance, carbon footprint
* Ability to apply concepts learned during MBA or graduation