public int solution(int[] A) {
int N = A.length;
Arrays.sort(A);
int minMoves = N;
for (int i = 0; i <= N - 1; i++) {
int end = A[i] + N - 1;
int r= binarySearch(A, end);
int balls= r- i + 1;
int moves = N - balls;
minMoves = Math.min(minMoves, moves);
}
return minMoves;
}
private int binarySearch(int[] A, int target) {
int low = 0;
int high = A.length - 1;
while (low <= high) {
int mid = low + (high - low) / 2;
if (A[mid] <= target) {
low = mid + 1;
} else {
high = mid - 1;
}
}
return high;
}
Hashedin โ
int N = A.length;
Arrays.sort(A);
int minMoves = N;
for (int i = 0; i <= N - 1; i++) {
int end = A[i] + N - 1;
int r= binarySearch(A, end);
int balls= r- i + 1;
int moves = N - balls;
minMoves = Math.min(minMoves, moves);
}
return minMoves;
}
private int binarySearch(int[] A, int target) {
int low = 0;
int high = A.length - 1;
while (low <= high) {
int mid = low + (high - low) / 2;
if (A[mid] <= target) {
low = mid + 1;
} else {
high = mid - 1;
}
}
return high;
}
Hashedin โ
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Techmatter Technologies is hiring Fullstack Software Developer
For 2024, 2023, 2022, 2021, 2020 grads
https://www.instahyre.com/job-318551-fullstack-software-developer-data-at-techmatters-technologies-3-mumbai/
For 2024, 2023, 2022, 2021, 2020 grads
https://www.instahyre.com/job-318551-fullstack-software-developer-data-at-techmatters-technologies-3-mumbai/
Instahyre
Fullstack Software Developer - Data job at Techmatters Technologies - Instahyre
Techmatters Technologies is looking for a Fullstack Software Developer - Data in Mumbai with 0-4 years of experience in Full-Stack Development, Other Software Development, Python, SQL, pandas, Data Analysis, etc. Apply today and get your dream job at Techmattersโฆ
public int solution(int[] A) {
int N = A.length;
Arrays.sort(A);
int minMoves = N;
for (int i = 0; i <= N - 1; i++) {
int end = A[i] + N - 1;
int r= binarySearch(A, end);
int balls= r- i + 1;
int moves = N - balls;
minMoves = Math.min(minMoves, moves);
}
return minMoves;
}
private int binarySearch(int[] A, int target) {
int low = 0;
int high = A.length - 1;
while (low <= high) {
int mid = low + (high - low) / 2;
if (A[mid] <= target) {
low = mid + 1;
} else {
high = mid - 1;
}
}
return high;
}
int N = A.length;
Arrays.sort(A);
int minMoves = N;
for (int i = 0; i <= N - 1; i++) {
int end = A[i] + N - 1;
int r= binarySearch(A, end);
int balls= r- i + 1;
int moves = N - balls;
minMoves = Math.min(minMoves, moves);
}
return minMoves;
}
private int binarySearch(int[] A, int target) {
int low = 0;
int high = A.length - 1;
while (low <= high) {
int mid = low + (high - low) / 2;
if (A[mid] <= target) {
low = mid + 1;
} else {
high = mid - 1;
}
}
return high;
}
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <vector>
#include <string>
#include <algorithm>
#include <iostream>
using namespace std;
struct Area {
int startR, endR, startC, endC, size;
bool horizontal;
Area(int sr, int er, int sc, int ec, int s, bool h)
: startR(sr), endR(er), startC(sc), endC(ec), size(s), horizontal(h) {}
};
int maxCultivationArea(const vector<string>& A) {
int N = A.size();
int M = A[0].size();
vector<Area> areas;
for (int r = 0; r < N; ++r) {
int startC = 0;
while (startC < M) {
if (A[r][startC] == '.') {
int endC = startC;
while (endC < M && A[r][endC] == '.') endC++;
areas.emplace_back(r, r, startC, endC - 1, endC - startC, true);
startC = endC;
} else {
startC++;
}
}
}
for (int c = 0; c < M; ++c) {
int startR = 0;
while (startR < N) {
if (A[startR][c] == '.') {
int endR = startR;
while (endR < N && A[endR][c] == '.') endR++;
areas.emplace_back(startR, endR - 1, c, c, endR - startR, false);
startR = endR;
} else {
startR++;
}
}
}
int maxCultivation = 0;
for (int i = 0; i < areas.size(); ++i) {
for (int j = i + 1; j < areas.size(); ++j) {
const Area& a1 = areas[i];
const Area& a2 = areas[j];
bool overlap = false;
if (a1.horizontal && a2.horizontal) {
overlap = a1.startR == a2.startR && !(a1.endC < a2.startC || a2.endC < a1.startC);
} else if (!a1.horizontal && !a2.horizontal) {
overlap = a1.startC == a2.startC && !(a1.endR < a2.startR || a2.endR < a1.startR);
} else {
if (a1.horizontal) {
overlap = a1.startR <= a2.endR && a1.startR >= a2.startR && a2.startC <= a1.endC && a2.startC >= a1.startC;
} else {
overlap = a2.startR <= a1.endR && a2.startR >= a1.startR && a1.startC <= a2.endC && a1.startC >= a2.startC;
}
}
if (!overlap) {
maxCultivation = max(maxCultivation, a1.size + a2.size);
}
}
}
for (const auto& area : areas) {
maxCultivation = max(maxCultivation, area.size);
}
return maxCultivation;
}
#include <string>
#include <algorithm>
#include <iostream>
using namespace std;
struct Area {
int startR, endR, startC, endC, size;
bool horizontal;
Area(int sr, int er, int sc, int ec, int s, bool h)
: startR(sr), endR(er), startC(sc), endC(ec), size(s), horizontal(h) {}
};
int maxCultivationArea(const vector<string>& A) {
int N = A.size();
int M = A[0].size();
vector<Area> areas;
for (int r = 0; r < N; ++r) {
int startC = 0;
while (startC < M) {
if (A[r][startC] == '.') {
int endC = startC;
while (endC < M && A[r][endC] == '.') endC++;
areas.emplace_back(r, r, startC, endC - 1, endC - startC, true);
startC = endC;
} else {
startC++;
}
}
}
for (int c = 0; c < M; ++c) {
int startR = 0;
while (startR < N) {
if (A[startR][c] == '.') {
int endR = startR;
while (endR < N && A[endR][c] == '.') endR++;
areas.emplace_back(startR, endR - 1, c, c, endR - startR, false);
startR = endR;
} else {
startR++;
}
}
}
int maxCultivation = 0;
for (int i = 0; i < areas.size(); ++i) {
for (int j = i + 1; j < areas.size(); ++j) {
const Area& a1 = areas[i];
const Area& a2 = areas[j];
bool overlap = false;
if (a1.horizontal && a2.horizontal) {
overlap = a1.startR == a2.startR && !(a1.endC < a2.startC || a2.endC < a1.startC);
} else if (!a1.horizontal && !a2.horizontal) {
overlap = a1.startC == a2.startC && !(a1.endR < a2.startR || a2.endR < a1.startR);
} else {
if (a1.horizontal) {
overlap = a1.startR <= a2.endR && a1.startR >= a2.startR && a2.startC <= a1.endC && a2.startC >= a1.startC;
} else {
overlap = a2.startR <= a1.endR && a2.startR >= a1.startR && a1.startC <= a2.endC && a1.startC >= a2.startC;
}
}
if (!overlap) {
maxCultivation = max(maxCultivation, a1.size + a2.size);
}
}
}
for (const auto& area : areas) {
maxCultivation = max(maxCultivation, area.size);
}
return maxCultivation;
}
๐1
List Customer and product without saleโ
โค1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
YouTube is hiring SDE
For 2023, 2022, 2021 grads
CTC: 35LPA-45LPA
Location - Bangalore
Register ASAP - https://unstop.com/jobs/software-engineer-ii-mobile-youtube-1007254?lb=Uy5zoiXM&utm_medium=Share&utm_source=shortUrl
For 2023, 2022, 2021 grads
CTC: 35LPA-45LPA
Location - Bangalore
Register ASAP - https://unstop.com/jobs/software-engineer-ii-mobile-youtube-1007254?lb=Uy5zoiXM&utm_medium=Share&utm_source=shortUrl
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Salesforce
๐ Job Title: Software Engineer (AMTS)
โ๐ป YOE: 0-2 years
โก๏ธ Apply: https://salesforce.wd12.myworkdayjobs.com/en-US/External_Career_Site/job/Software-Engineering-AMTS_JR251552
Please do share in your college grps and in case you are applying please react on this post:) ๐โค๏ธ
๐ Job Title: Software Engineer (AMTS)
โ๐ป YOE: 0-2 years
โก๏ธ Apply: https://salesforce.wd12.myworkdayjobs.com/en-US/External_Career_Site/job/Software-Engineering-AMTS_JR251552
Please do share in your college grps and in case you are applying please react on this post:) ๐โค๏ธ
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Unstudio AI | Full Stack Engineer Internship | 2024, 2025, 2026 Grads
https://in.linkedin.com/jobs/view/full-stack-engineer-at-unstudio-ai-3936970265?position=5&pageNum=0&refId=bbrC6FlwfyHWhJ2b%2B1frUA%3D%3D&trackingId=fm4cVyntzX85ISIMWY9hOg%3D%3D&trk=public_jobs_jserp-result_search-card
https://in.linkedin.com/jobs/view/full-stack-engineer-at-unstudio-ai-3936970265?position=5&pageNum=0&refId=bbrC6FlwfyHWhJ2b%2B1frUA%3D%3D&trackingId=fm4cVyntzX85ISIMWY9hOg%3D%3D&trk=public_jobs_jserp-result_search-card
Linkedin
Unstudio AI hiring Full Stack Engineer in Gurugram, Haryana, India | LinkedIn
Posted 6:17:53 AM. โจ About Us โจUnstudio is building a suite of AI-powered products that empower entrepreneurs, smallโฆSee this and similar jobs on LinkedIn.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
PayU | Software Engineer Intern | 2025, 2024 Grads | Expected Stipend: 35-40K
https://in.linkedin.com/jobs/view/intern-software-engineer-at-payu-3935457893?position=1&pageNum=0&refId=clqAgydhsR5yFGMuH7avLQ%3D%3D&trackingId=XXrSJUxJ1oVou%2FW3s87hfw%3D%3D&trk=public_jobs_jserp-result_search-card
https://in.linkedin.com/jobs/view/intern-software-engineer-at-payu-3935457893?position=1&pageNum=0&refId=clqAgydhsR5yFGMuH7avLQ%3D%3D&trackingId=XXrSJUxJ1oVou%2FW3s87hfw%3D%3D&trk=public_jobs_jserp-result_search-card
Linkedin
PayU hiring Intern - Software Engineer in Mumbai, Maharashtra, India | LinkedIn
Posted 4:50:08 PM. Role: Intern - Software EngineerLocation: Gurgaon/BengaluruRequirementsSoftware Development: AssistโฆSee this and similar jobs on LinkedIn.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: ServiceNow
๐ Job Title: SRE (Site Reliability Engineer)
โ๐ป YOE: 2023 and 2024 grads
โก๏ธ Apply: https://careers.servicenow.com/en/jobs/743999990606469/site-reliability-engineer/
Please do share in your college grps and in case you are applying please react on this post:) ๐โค๏ธ
๐ Job Title: SRE (Site Reliability Engineer)
โ๐ป YOE: 2023 and 2024 grads
โก๏ธ Apply: https://careers.servicenow.com/en/jobs/743999990606469/site-reliability-engineer/
Please do share in your college grps and in case you are applying please react on this post:) ๐โค๏ธ
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Quest Global is hiring for Trainee Engineer
Experience: 0-1 years
Expected Salary: 4 - 6 LPA
Apply here:
https://krb-sjobs.brassring.com/TGnewUI/Search/home/HomeWithPreLoad?partnerid=30174&siteid=5116&PageType=JobDetails&jobid=91481#jobDetails=91481_5116
Experience: 0-1 years
Expected Salary: 4 - 6 LPA
Apply here:
https://krb-sjobs.brassring.com/TGnewUI/Search/home/HomeWithPreLoad?partnerid=30174&siteid=5116&PageType=JobDetails&jobid=91481#jobDetails=91481_5116
Brassring
Trainee Engineer - Quest Global - Job Details
Job Details: Quest Global is an organization at the forefront of innovation and one of the worldโs fastest growing engineer
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Capillary is hiring for Software Development Engineer - I
Experience: 0 - 2 years
Expected Salary: 10 - 15 LPA
Apply here:
https://capillarytech.skillate.com/jobs/54025
Experience: 0 - 2 years
Expected Salary: 10 - 15 LPA
Apply here:
https://capillarytech.skillate.com/jobs/54025
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Register for Amazon ML Summer School - https://xathon.mettl.com/event/amazonmlsummerschool
2025 or 2026 grads only allowed
2025 or 2026 grads only allowed
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
StudyIQ | Software Engineer | 2023, 2022 Grads | Expected Salary: 12-15 LPA
https://www.instahyre.com/job-319137-sde-1-backend-at-studyiq-education-delhi-gurgaon/
https://www.instahyre.com/job-319137-sde-1-backend-at-studyiq-education-delhi-gurgaon/
Instahyre
SDE 1 (Backend) job at StudyIQ Education - Instahyre
StudyIQ Education is looking for a SDE 1 (Backend) in Delhi / Gurgaon with 1-2 years of experience in Backend Development, Big Data, Java, Node.js, etc. Apply today and get your dream job at StudyIQ Education!
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Powerplay | Full Stack Developer Internship | Expected Stipend: 35K
https://www.instahyre.com/job-318898-full-stack-developer-internship-at-powerplay-bangalore/
https://www.instahyre.com/job-318898-full-stack-developer-internship-at-powerplay-bangalore/
Instahyre
Full Stack Developer (Internship) job at Powerplay - Instahyre
Powerplay is looking for a Full Stack Developer (Internship) in Bangalore with 0-0 years of experience in Full-Stack Development, JavaScript, PHP, Node.js, React.js, Wordpress, etc. Apply today and get your dream job at Powerplay!
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Cars24 is hiring for Software Intern (Python)
Location: Gurgaon
Duration: 6 months
2024 and 2025 grads can try:)
If interested send your resume to: Mahima.jain@cars24.com
Location: Gurgaon
Duration: 6 months
2024 and 2025 grads can try:)
If interested send your resume to: Mahima.jain@cars24.com
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Hello fresher's!
We are seeking a motivated and detail-oriented Quality Assurance Engineer - Intern to join our team in Pune. Apply now at nancy@roxiler.com
We are seeking a motivated and detail-oriented Quality Assurance Engineer - Intern to join our team in Pune. Apply now at nancy@roxiler.com
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Castellum Labs Hiring Python Developer internship/Trainee
Experience : 0 to 1
https://www.linkedin.com/jobs/view/3936686440/
Experience : 0 to 1
https://www.linkedin.com/jobs/view/3936686440/
Linkedin
Castellum Labs hiring Python Developer Internship/Trainee in Hyderabad, Telangana, India | LinkedIn
Posted 9:11:01 AM. Company DescriptionCastellum Labs is a next-generation cybersecurity technology venture based inโฆSee this and similar jobs on LinkedIn.