#include <iostream>
#include <vector>
#include <unordered_map>
#include <algorithm>
using namespace std;
int solution(const vector<int> &m, const vector<int> &t, int mlimit) {
unordered_map<int, vector<int>> have;
for (int i = 0; i < m.size(); ++i) {
have[t[i]].push_back(m[i]);
}
int r = 0;
for (auto& p : have) {
auto& v = p.second;
sort(v.begin(), v.end());
int i = 0, j = v.size() - 1;
for (; i < j; ++r, --j) {
if (v[i] + v[j] <= mlimit) {
++i;
}
}
if (i == j) {
++r;
}
}
return r;
}
Task Scheduling โ
#include <vector>
#include <unordered_map>
#include <algorithm>
using namespace std;
int solution(const vector<int> &m, const vector<int> &t, int mlimit) {
unordered_map<int, vector<int>> have;
for (int i = 0; i < m.size(); ++i) {
have[t[i]].push_back(m[i]);
}
int r = 0;
for (auto& p : have) {
auto& v = p.second;
sort(v.begin(), v.end());
int i = 0, j = v.size() - 1;
for (; i < j; ++r, --j) {
if (v[i] + v[j] <= mlimit) {
++i;
}
}
if (i == j) {
++r;
}
}
return r;
}
Task Scheduling โ
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Cognizant are hiring for Subject Matter Expert- Foreclosure
Qualification: Any Graduate
Experience: 0 to 5 yrs.
Timings: US Shift
Location: Mumbai
Skillset: Foreclosure, US Mortgage
If you find yourself suitable for this role, please share your updated resume on swati.dansana@cognizant.com with the below details.
Total work experience:
Current CTC:
Expected CTC:
Notice period:
Qualification: Any Graduate
Experience: 0 to 5 yrs.
Timings: US Shift
Location: Mumbai
Skillset: Foreclosure, US Mortgage
If you find yourself suitable for this role, please share your updated resume on swati.dansana@cognizant.com with the below details.
Total work experience:
Current CTC:
Expected CTC:
Notice period:
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
ROLE Manager โ Logistics and Customer Service.
LOCATION-Chennai, Head Office
EXPERIENCE-6 months + experience in Logistics. Supply chain would also be relevant as long as candidate has knowledge of logistics
INDUSTRY-FMCG / Automobile / Manufacturing
CURRENT CTC-25 LPA + only
OFFERED CTC-15% - 20% Increase on CTC
QUALIFICATION-PG Diploma in Industrial Engineering โ From IIM โ Mumbai (Also called as NITIE - National Institute of Industrial Engineering)
2022 / 2023 batches only
If interested, kindly share your updated resumes on mitali.dey@cielhr.com
LOCATION-Chennai, Head Office
EXPERIENCE-6 months + experience in Logistics. Supply chain would also be relevant as long as candidate has knowledge of logistics
INDUSTRY-FMCG / Automobile / Manufacturing
CURRENT CTC-25 LPA + only
OFFERED CTC-15% - 20% Increase on CTC
QUALIFICATION-PG Diploma in Industrial Engineering โ From IIM โ Mumbai (Also called as NITIE - National Institute of Industrial Engineering)
2022 / 2023 batches only
If interested, kindly share your updated resumes on mitali.dey@cielhr.com
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Wipro Recruitment of Freshers For Software Developer Role
Experience : Freshers
Skills:
- Strong Knowledge of various programming languages.
- Expertise in automation tools and systems.
- Good knowledge of software development life cycle.
- Strong debug and data analysis skills
๐ Apply Link -
https://careers.wipro.com/opportunities/jobs/3046326?lang=en-us&previousLocale=en-US
Experience : Freshers
Skills:
- Strong Knowledge of various programming languages.
- Expertise in automation tools and systems.
- Good knowledge of software development life cycle.
- Strong debug and data analysis skills
๐ Apply Link -
https://careers.wipro.com/opportunities/jobs/3046326?lang=en-us&previousLocale=en-US
โค2๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Infosysapps
Infosys | Surveys
Create Surveys. Collect feedback through a computer assisted, Mobile friendly method. Design Surveys, Send Request , Analyze response and more ...
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐QualiFacts is Hiring !!
Role: Systems Engineer I
Expected Salary: 6-10 LPA
๐Apply here: https://jobs.jobvite.com/credible/job/ozBArfwV?s=LinkedIn&__jvst=Job%20Board&__jvsd=LinkedIn
Role: Systems Engineer I
Expected Salary: 6-10 LPA
๐Apply here: https://jobs.jobvite.com/credible/job/ozBArfwV?s=LinkedIn&__jvst=Job%20Board&__jvsd=LinkedIn
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
ShambhavPay is hiring for Frontend Developer role
Batch eligible: 2024 and 2025 passouts
Location: Gurugram
Duration: 3-6 months
If interested, send your resume to hr@sambhavpay.com
Batch eligible: 2024 and 2025 passouts
Location: Gurugram
Duration: 3-6 months
If interested, send your resume to hr@sambhavpay.com
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Siemens
Role: Member of Technical Staff
Batch eligible: 2022 and 2023 passouts
Apply: https://jobs.siemens.com/careers/job/563156119107046
Please do share in your college grps and in case you are applying please react on this post:)
Role: Member of Technical Staff
Batch eligible: 2022 and 2023 passouts
Apply: https://jobs.siemens.com/careers/job/563156119107046
Please do share in your college grps and in case you are applying please react on this post:)
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: VentureDive
Role: QA Engineer
Batch eligible: 2024 passouts only
Apply: https://docs.google.com/forms/d/e/1FAIpQLSf4hKrDQzlsLMuHcZgQSzo9R6NRa3-6CmuTkJnGv5DjW4BwoA/viewform
Please do share in your college grps and in case you are applying please react on this post:)
Role: QA Engineer
Batch eligible: 2024 passouts only
Apply: https://docs.google.com/forms/d/e/1FAIpQLSf4hKrDQzlsLMuHcZgQSzo9R6NRa3-6CmuTkJnGv5DjW4BwoA/viewform
Please do share in your college grps and in case you are applying please react on this post:)
๐2
๐NVIDIA is Hiring !!
Role: Software Engineer - New College Graduate
Expected Salary: 10-20 LPA
๐Apply here: https://nvidia.wd5.myworkdayjobs.com/en-US/NVIDIAExternalCareerSite/job/India-Pune/Tegra-System-Software-Engineer---New-College-Graduate_JR1980211
Role: Software Engineer - New College Graduate
Expected Salary: 10-20 LPA
๐Apply here: https://nvidia.wd5.myworkdayjobs.com/en-US/NVIDIAExternalCareerSite/job/India-Pune/Tegra-System-Software-Engineer---New-College-Graduate_JR1980211
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Hypersonix Inc is hiring for Software Engineer - Intern
Expected Stipend: 25k-45k per month
Apply here: https://linkedin.com/jobs/view/3849666827/
๐Webriy is hiring for Web Developer Intern
Salary: 3-8 LPA
Apply here: https://linkedin.com/jobs/view/3847156004/
Expected Stipend: 25k-45k per month
Apply here: https://linkedin.com/jobs/view/3849666827/
๐Webriy is hiring for Web Developer Intern
Salary: 3-8 LPA
Apply here: https://linkedin.com/jobs/view/3847156004/
Linkedin
Webriy hiring Web Development Internship - 2024 in India | LinkedIn
Posted 5:14:58 PM. OverviewThe Web Development Intern will work closely with our development team to learn andโฆSee this and similar jobs on LinkedIn.
public static int findMagicValue(String input)
{
if (input == null || input.isEmpty())
{
return -1;
}
int magicValue = 1;
for (char ch : input.toCharArray()) {
if (Character.isLetterOrDigit(ch)) {
int asciiValue = (int) ch;
if (Integer.MAX_VALUE / magicValue < asciiValue) {
break;
}
magicValue *= asciiValue;
}
}
return magicValue;
}
{
if (input == null || input.isEmpty())
{
return -1;
}
int magicValue = 1;
for (char ch : input.toCharArray()) {
if (Character.isLetterOrDigit(ch)) {
int asciiValue = (int) ch;
if (Integer.MAX_VALUE / magicValue < asciiValue) {
break;
}
magicValue *= asciiValue;
}
}
return magicValue;
}
#include <iostream>
using namespace std;
int main() {
int num;
cin >> num;
while (num--) {
int friends, choc;
cin >> friends >> choc;
if (choc % friends == 0) {
cout << "Yes\n";
} else {
cout << "No\n";
}
}
return 0;
}
Friends Birthday Party โ
using namespace std;
int main() {
int num;
cin >> num;
while (num--) {
int friends, choc;
cin >> friends >> choc;
if (choc % friends == 0) {
cout << "Yes\n";
} else {
cout << "No\n";
}
}
return 0;
}
Friends Birthday Party โ
#include <vector>
#include <algorithm>
#include <iostream>
using namespace std;
int solve(vector<int>& err, int p, int q) {
make_heap(err.begin(), err.end(), less<int>());
int base_line = 0;
int operations = 0;
while (err.front() > base_line) {
base_line += q;
pop_heap(err.begin(), err.end(), less<int>());
int max_err = err.back();
err.pop_back();
err.push_back(max_err - (p - q));
push_heap(err.begin(), err.end(), less<int>());
operations += 1;
}
return operations;
}
#include <algorithm>
#include <iostream>
using namespace std;
int solve(vector<int>& err, int p, int q) {
make_heap(err.begin(), err.end(), less<int>());
int base_line = 0;
int operations = 0;
while (err.front() > base_line) {
base_line += q;
pop_heap(err.begin(), err.end(), less<int>());
int max_err = err.back();
err.pop_back();
err.push_back(max_err - (p - q));
push_heap(err.begin(), err.end(), less<int>());
operations += 1;
}
return operations;
}
๐1
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
public static long calculateMaximumProfit(int cost_per_cut, int metal_price, int[] lengths) {
long maxProfit = 0;
long curProfit = 0;
int maxLength = 0;
int totalRods = 0;
int totalCuts = 0;
Arrays.sort(lengths);
for (int curLength : lengths) {
maxLength = Math.max(maxLength, curLength);
}
for (int curLength = 1; curLength <= maxLength; curLength++) {
int prevSum = 0;
for (int length : lengths) {
int cut = 0;
int waste = 0;
if (length % curLength == 0) {
cut = (length / curLength) - 1;
} else {
cut = length / curLength;
}
waste = length % curLength;
int profit = Math.max(prevSum, prevSum + (length * metal_price - cut * cost_per_cut - waste * metal_price));
prevSum = profit;
}
curProfit = prevSum;
maxProfit = Math.max(maxProfit, curProfit);
}
return maxProfit;
}
Cutting metal surplus โ
long maxProfit = 0;
long curProfit = 0;
int maxLength = 0;
int totalRods = 0;
int totalCuts = 0;
Arrays.sort(lengths);
for (int curLength : lengths) {
maxLength = Math.max(maxLength, curLength);
}
for (int curLength = 1; curLength <= maxLength; curLength++) {
int prevSum = 0;
for (int length : lengths) {
int cut = 0;
int waste = 0;
if (length % curLength == 0) {
cut = (length / curLength) - 1;
} else {
cut = length / curLength;
}
waste = length % curLength;
int profit = Math.max(prevSum, prevSum + (length * metal_price - cut * cost_per_cut - waste * metal_price));
prevSum = profit;
}
curProfit = prevSum;
maxProfit = Math.max(maxProfit, curProfit);
}
return maxProfit;
}
Cutting metal surplus โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Qualwebs is Hiring !!
Role: QA Analyst
Batch: 2023 & Below
CTC: 6 LPA
๐Apply here: https://bit.ly/3TcGz7E
Role: QA Analyst
Batch: 2023 & Below
CTC: 6 LPA
๐Apply here: https://bit.ly/3TcGz7E
Codingninjas
Coding Ninjas Studio Weekly Contest 116 Coding Contest- Coding Ninjas
Level up your coding skills and quickly land a job with the Coding Ninjas Studio Contests every week. Compete and see your ranking!
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
opening for Management Trainee in Human Resource department with one of the leading API Pharmaceutical manufacturing company based in Vikhroli, Mumbai
Note -Qualification โ MBA-HR
Exp-0-1 yr
Interested candidates may share cv on jpun@sahajpharma.com
Note -Qualification โ MBA-HR
Exp-0-1 yr
Interested candidates may share cv on jpun@sahajpharma.com
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
EY India is hiring ๐ข๐ข๐ข
We are looking for candidates for Mumbai location having 0-2 years of experience in "Internal Audit/ Concurrent Audit/Bank Audit" for Business Consulting Risk cluster.
Skills Required- Internal Audit/Concurrent Audit/Bank Audit
Location Mumbai
Qualification - Graduated/Post Graduate
Freshers are also encouraged to apply.
Interested candidates can email their CV with the subject line "Application for Concurrent Audit Mumbai" at keya.mahesh@in.ey.com
We are looking for candidates for Mumbai location having 0-2 years of experience in "Internal Audit/ Concurrent Audit/Bank Audit" for Business Consulting Risk cluster.
Skills Required- Internal Audit/Concurrent Audit/Bank Audit
Location Mumbai
Qualification - Graduated/Post Graduate
Freshers are also encouraged to apply.
Interested candidates can email their CV with the subject line "Application for Concurrent Audit Mumbai" at keya.mahesh@in.ey.com