long getMaxProfit(vector<int> pnl, int k) {
int n = pnl.size();
long maxprofit = 0;
int i;
long profit = 0;
int start = 0;
for(i=0;i<n;i++) {
profit += pnl[i];
if (profit <= 0) {
profit = 0;
start = i+1;
} else {
maxprofit = max(maxprofit , profit);
if (i-start+1 == k) {
profit -= pnl[start];
start++;
}
while(pnl[start] <= 0 && start <=i) {
profit -= pnl[start];
maxprofit = max(maxprofit , profit);
start++;
}
}
}
return maxprofit;
}
Profit Analysis โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : Rakuten
Role : Associate Software Engineer
Batch : 2024/2023/2022 passouts
Link : https://symphony-rakuten.sensehq.eu/careers/jobs/41
Role : Associate Software Engineer
Batch : 2024/2023/2022 passouts
Link : https://symphony-rakuten.sensehq.eu/careers/jobs/41
Job openings at Rakuten Symphony
All people need connectivity.The Rakuten Group is reinventing telecom by greatly reducing cost, rewarding big users not penalizing them, empowering more people and leading the human centric AI future.The mission is to connect everybody and enable all to be.Rakuten.โฆ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : Quizizz
Role : Software Engineer
Batch : 2024/2023/2022 passouts
Link : https://jobs.lever.co/quizizz/ae6fce20-c1d8-4a8e-9b45-c11399f618ec
Role : Software Engineer
Batch : 2024/2023/2022 passouts
Link : https://jobs.lever.co/quizizz/ae6fce20-c1d8-4a8e-9b45-c11399f618ec
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : American Express
Batch : 2024/2023 passouts
Role : Data Analyst
Major skillset : Python and SQL
Link : https://aexp.eightfold.ai/careers/job/25254453
Batch : 2024/2023 passouts
Role : Data Analyst
Major skillset : Python and SQL
Link : https://aexp.eightfold.ai/careers/job/25254453
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Micron Technology is hiring for Intern, Data Engineer
Experience: 0 - 1 year's
Expected Stipend: 3-6 LPA
Apply here: https://careers.micron.com/careers/job/23995750?src=JB-12600&domain=micron.com
๐Meril is hiring for C++ Software Developer
Experience: 0 - 1 year's
Expected Salary: 3-6 LPA
Apply here: https://www.linkedin.com/jobs/view/4037120166/?alternateChannel=search
๐KellyOCG is hiring for UI Developer
Experience: 0 - 1 year's
Expected Salary: 5-10 LPA
Apply here: https://www.linkedin.com/jobs/view/4039239030/?alternateChannel=search
Experience: 0 - 1 year's
Expected Stipend: 3-6 LPA
Apply here: https://careers.micron.com/careers/job/23995750?src=JB-12600&domain=micron.com
๐Meril is hiring for C++ Software Developer
Experience: 0 - 1 year's
Expected Salary: 3-6 LPA
Apply here: https://www.linkedin.com/jobs/view/4037120166/?alternateChannel=search
๐KellyOCG is hiring for UI Developer
Experience: 0 - 1 year's
Expected Salary: 5-10 LPA
Apply here: https://www.linkedin.com/jobs/view/4039239030/?alternateChannel=search
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
If interested, please contact
8925902900
8925813780
8925902900
8925813780
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Email your Resume at: ADMIN@SPCYBERWORD.COM
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Volvo Cars Hiring
Role: Associate Software Engineer
Location: Bengaluru
๐ปApply: https://jobs.volvocars.com/job/Bengaluru-Associate-Software-Engineer-KA-562122/1121362001/
Role: Associate Software Engineer
Location: Bengaluru
๐ปApply: https://jobs.volvocars.com/job/Bengaluru-Associate-Software-Engineer-KA-562122/1121362001/
7 Rules of Life:
- Let it go
- Ignore them
- Give it time
- Donโt compare
- Stay calm
- Itโs on you
- Always smile
- Let it go
- Ignore them
- Give it time
- Donโt compare
- Stay calm
- Itโs on you
- Always smile
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : Atlassian
Batch : 2023/2022/2021 passouts
Role : Software Engineer
Link : https://www.atlassian.com/company/careers/details/15802
Batch : 2023/2022/2021 passouts
Role : Software Engineer
Link : https://www.atlassian.com/company/careers/details/15802
Atlassian
Job Details | Atlassian
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Lam Research hiring Engineering Intern
Batch eligible: 2025 grads
Apply: https://careers.lamresearch.com/job/Bangalore-Engineering-Intern-1-IN-B/1218002000/
Batch eligible: 2025 grads
Apply: https://careers.lamresearch.com/job/Bangalore-Engineering-Intern-1-IN-B/1218002000/
I am not sure if you guys are aware or not but there are many scammers in Telegram who may ask you to pay them 200 rs and will give 1250 after sometime, never ever reply to those fraud people. Never ever pay any money to anyone in telegram for the sake of getting it double or whatsoever.
Be smart, stay safe โค๏ธ
Be smart, stay safe โค๏ธ
#include <iostream>
#include <vector>
#include <unordered_map>
#include <set>
#include <algorithm>
using namespace std;
long long minimumCost(vector<int>& arr) {
unordered_map<int, int> freq;
for (int num : arr) {
freq[num]++;
}
vector<pair<int, int>> elements;
for (const auto& entry : freq) {
elements.push_back(entry);
}
sort(elements.begin(), elements.end(), [](pair<int, int>& a, pair<int, int>& b) {
return a.second > b.second;
});
set<int> distinct;
long long totalCost = 0;
for (const auto& element : elements) {
for (int i = 0; i < element.second; ++i) {
distinct.insert(element.first);
totalCost += distinct.size();
}
}
return totalCost;
}
IBM โ