public static int selectStock(int saving, int[] currentValue, int[] futureValue) {
int n = currentValue.length;
int[][] dp = new int[n + 1][saving + 1];
for (int i = 1; i <= n; i++) {
for (int j = 0; j <= saving; j++) {
dp[i][j] = dp[i - 1][j];
if (j >= currentValue[i - 1]) {
dp[i][j] = Math.max(dp[i][j], dp[i - 1][j - currentValue[i - 1]] + futureValue[i - 1] - currentValue[i - 1]);
}
}
}
return dp[n][saving];
}
Selecting stocks โ
Swiggy
int n = currentValue.length;
int[][] dp = new int[n + 1][saving + 1];
for (int i = 1; i <= n; i++) {
for (int j = 0; j <= saving; j++) {
dp[i][j] = dp[i - 1][j];
if (j >= currentValue[i - 1]) {
dp[i][j] = Math.max(dp[i][j], dp[i - 1][j - currentValue[i - 1]] + futureValue[i - 1] - currentValue[i - 1]);
}
}
}
return dp[n][saving];
}
Selecting stocks โ
Swiggy
#include <bits/stdc++.h>
using namespace std;
int jumps(int flagHeight, int bigJump) {
if (flagHeight <= bigJump)
return 1;
int remainingHeight = flagHeight - bigJump;
int minJumps = remainingHeight / bigJump;
if (remainingHeight % bigJump != 0)
minJumps++;
return minJumps + 1;
}
Jump to the flag โ
Swiggy
using namespace std;
int jumps(int flagHeight, int bigJump) {
if (flagHeight <= bigJump)
return 1;
int remainingHeight = flagHeight - bigJump;
int minJumps = remainingHeight / bigJump;
if (remainingHeight % bigJump != 0)
minJumps++;
return minJumps + 1;
}
Jump to the flag โ
Swiggy
๐1
int findMaxMinutes(int api_size, vector<int>& apiTimes) {
sort(apiTimes.begin(), apiTimes.end());
int maxMinutes = 0;
int totalRunningTime = 0;
for (int time : apiTimes) {
totalRunningTime += time;
}
for (int time : apiTimes) {
int simultaneousApps = totalRunningTime / time;
maxMinutes = max(maxMinutes, simultaneousApps);
}
return maxMinutes;
}
Flipkart API
sort(apiTimes.begin(), apiTimes.end());
int maxMinutes = 0;
int totalRunningTime = 0;
for (int time : apiTimes) {
totalRunningTime += time;
}
for (int time : apiTimes) {
int simultaneousApps = totalRunningTime / time;
maxMinutes = max(maxMinutes, simultaneousApps);
}
return maxMinutes;
}
Flipkart API
๐4๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Just an update for you guys.
Currently Microsoft is actively hiring for Software Engineer role, if you want to apply please go on career page and try to apply through referral.
Best of luck ๐ค
Currently Microsoft is actively hiring for Software Engineer role, if you want to apply please go on career page and try to apply through referral.
Best of luck ๐ค
#define pll pair<long long,long long>
#define vll vector<long long>
#define ll long long
#define vvll vector<vector<long long>>
#define vpll vector<pair<long long,long long>>
class Solution {
public:
bool isRobotBounded(string s) {
ll x=0,y=0;
ll d=0;
vvll dir={{0,1},{1,0},{0,-1},{-1,0}};
for(auto it:s)
{
if(it=='R') d=(d+1)%4;
else if(it=='L') d=(d+3)%4;
else x+=dir[d][0],y+=dir[d][1];
}
if(x==0 and y==0 or d>0) return 1;
return 0;
}
};
Encircular โ
#define vll vector<long long>
#define ll long long
#define vvll vector<vector<long long>>
#define vpll vector<pair<long long,long long>>
class Solution {
public:
bool isRobotBounded(string s) {
ll x=0,y=0;
ll d=0;
vvll dir={{0,1},{1,0},{0,-1},{-1,0}};
for(auto it:s)
{
if(it=='R') d=(d+1)%4;
else if(it=='L') d=(d+3)%4;
else x+=dir[d][0],y+=dir[d][1];
}
if(x==0 and y==0 or d>0) return 1;
return 0;
}
};
Encircular โ
๐2
โ๏ธAmazon Off Campus Drive 2024 Hiring AS ML Data Associate I | INR 2.6 to 3.6 LPAโ๏ธ
๐จโ๐ปJob Role : ML Data Associate I
๐Qualification : Any degree
๐Location : Chennai
๐ฐSalary : INR 2.6 to 3.6 LPA
โญ๏ธ Apply Fast : https://fresherearth.blogspot.com/2024/03/amazon-off-campus-drive-2024-hiring-as.html
โ Direct Jobs : https://t.me/addlist/wcoDjKedDTBhNzFl
๐จโ๐ปJob Role : ML Data Associate I
๐Qualification : Any degree
๐Location : Chennai
๐ฐSalary : INR 2.6 to 3.6 LPA
โญ๏ธ Apply Fast : https://fresherearth.blogspot.com/2024/03/amazon-off-campus-drive-2024-hiring-as.html
โ Direct Jobs : https://t.me/addlist/wcoDjKedDTBhNzFl
๐3
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ pinned ยซโ๏ธAmazon Off Campus Drive 2024 Hiring AS ML Data Associate I | INR 2.6 to 3.6 LPAโ๏ธ ๐จโ๐ปJob Role : ML Data Associate I ๐Qualification : Any degree ๐Location : Chennai ๐ฐSalary : INR 2.6 to 3.6 LPA โญ๏ธ Apply Fast : https://fresherearth.blogspot.com/2024/03/amazonโฆยป
HackerRank Website Traffic - HackerRank SQL Solutions
https://forum.csalgo.us/threads/website-traffic-hackerrank-sql-solutions.292/
https://forum.csalgo.us/threads/website-traffic-hackerrank-sql-solutions.292/
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐RoaDo is hiring for Multiple Roles
Stipend: 20k-30k per month
Salary: โน5L โ โน6.5L
๐ MERN stack developer:
https://wellfound.com/jobs/2960129-mern-stack-developer-role
๐ Software Developer Intern:
https://wellfound.com/jobs/2960128-software-developer-internship
Stipend: 20k-30k per month
Salary: โน5L โ โน6.5L
๐ MERN stack developer:
https://wellfound.com/jobs/2960129-mern-stack-developer-role
๐ Software Developer Intern:
https://wellfound.com/jobs/2960128-software-developer-internship
Wellfound (formerly AngelList Talent)
MERN stack developer role at RoaDo โข Bengaluru โข Remote (Work from Home)
RoaDo is hiring a MERN stack developer role in Bengaluru - Apply now on Wellfound (formerly AngelList Talent)! Weโre looking for a full stack web developer who will take a key role on...
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
โ๏ธEcoEnergy Insights Off Campus Drive 2024 Hiring AS Project Engineer | INR 3 LPAโ๏ธ
๐จโ๐ปJob Role : Project Engineer
๐Qualification : B.E/B.Tech
๐Batch : 2023
๐ฐPackage : INR 3 LPA
โญ๏ธ Apply Fast :
https://mycareernet.in/mycareernet/challenges/Ecoenergy-Project-Engineer-155
๐จโ๐ปJob Role : Project Engineer
๐Qualification : B.E/B.Tech
๐Batch : 2023
๐ฐPackage : INR 3 LPA
โญ๏ธ Apply Fast :
https://mycareernet.in/mycareernet/challenges/Ecoenergy-Project-Engineer-155
mycareernet.in
Project Engineer
Salary: 3-3 LPA | Location: Bengaluru
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company โ Druva
Role โ Technical Support Team
Qualification โ Any Graduate
Experience - Freshers
Location โ Across India
Salary โ 7.5 LPA - 19 LPA
Link - https://www.druva.com/about/careers/jobs/7109712002?gh_jid=7109712002
Role โ Technical Support Team
Qualification โ Any Graduate
Experience - Freshers
Location โ Across India
Salary โ 7.5 LPA - 19 LPA
Link - https://www.druva.com/about/careers/jobs/7109712002?gh_jid=7109712002
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : Google
Role : Data Scientist
Batch : 2024 passouts M.Tech/MS Students only
Link : https://www.google.com/about/careers/applications/jobs/results/82920494979785414-data-scientist/
Role : Data Scientist
Batch : 2024 passouts M.Tech/MS Students only
Link : https://www.google.com/about/careers/applications/jobs/results/82920494979785414-data-scientist/
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
GoDaddy | SDE | 2022 Grads and Below
https://careers.godaddy/jobs/software-development-engineer-india-ad99fd10-59ea-43bd-b6e5-86550c75de4f
https://careers.godaddy/jobs/software-development-engineer-india-ad99fd10-59ea-43bd-b6e5-86550c75de4f
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Looking for an SDET(QA) Intern for HSR Layout
Technical Requirements:
Sound understanding of the Phases of SDLC,
Hands on with any of the one coding language(Python /Java etc )
API validation & automation
Good to have but not mandatory: Selenium, Appium
2. Non-technical Requirements:
Mode: Work from Office (5days/week)
Base Location: Bangalore based / willing to relocate to Bangalore
Qualification: Freshers or final year students 2024 B Tech / BE / MCA / Equivalent
SDET Interview process:
1- Offline assessment test: 40 mins (aptitude & coding basics)
2- F-2-F Interview: 1 Hr - (Logical thinking & Coding)
Interested candidates please share your resume to Sreekanth.nair@mfine.co
Technical Requirements:
Sound understanding of the Phases of SDLC,
Hands on with any of the one coding language(Python /Java etc )
API validation & automation
Good to have but not mandatory: Selenium, Appium
2. Non-technical Requirements:
Mode: Work from Office (5days/week)
Base Location: Bangalore based / willing to relocate to Bangalore
Qualification: Freshers or final year students 2024 B Tech / BE / MCA / Equivalent
SDET Interview process:
1- Offline assessment test: 40 mins (aptitude & coding basics)
2- F-2-F Interview: 1 Hr - (Logical thinking & Coding)
Interested candidates please share your resume to Sreekanth.nair@mfine.co
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Juppiter Ai Labs looking for Technical PM full Time Intern
Position : PM technical
Location : Remote
Salary : 10 to 12k
Working Hours: 8 hrs
If you are interested plz share your resume on aishwarya@juppiterailabs.com
Position : PM technical
Location : Remote
Salary : 10 to 12k
Working Hours: 8 hrs
If you are interested plz share your resume on aishwarya@juppiterailabs.com
๐1
Python: Stop Words - Python HackerRank Solution - Exam Solution
https://forum.csalgo.us/threads/python-stop-words-python-hackerrank-solution-exam-solution.293/
https://forum.csalgo.us/threads/python-stop-words-python-hackerrank-solution-exam-solution.293/
HackerRank Python: RLE Decoder - Python HackerRank Solution - Exam Solution
https://forum.csalgo.us/threads/python-rle-decoder-python-hackerrank-solution-exam-solution.294/
https://forum.csalgo.us/threads/python-rle-decoder-python-hackerrank-solution-exam-solution.294/
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Kartavya Technology is hiring for Flutter developer (Freshers only)
Location: Remote
๐Apply here: https://linkedin.com/jobs/view/3864214327/
Location: Remote
๐Apply here: https://linkedin.com/jobs/view/3864214327/
๐2