Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
We're hiring DevOps Engineers with skills in AWS, basic Java (or C++), troubleshooting, Linux, and git. Interested? DM me only if you think you're skilled enough
#Amazon #DevOps
https://x.com/tush_tr604/status/1778765194581475433
#Amazon #DevOps
https://x.com/tush_tr604/status/1778765194581475433
X (formerly Twitter)
Tushar Rajpoot (@tush_tr604) on X
We're hiring DevOps Engineers with skills in AWS, basic Java (or C++), troubleshooting, Linux, and git. Interested? DM me only if you think you're skilled enough
#Amazon #DevOps #Hiring
#Amazon #DevOps #Hiring
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Changepond recruiting Fresher_Software Developers and Testers_Registration Link given Below
Skills Required: JAVA / Net / Testing/ RPA / SQL/ PHP with Logical and analytical thinking towards programming.
Eligibility:
B.E. / B.Tech/ME/Mtech CSE / IT / ECE / EEE
B.Sc (Computer Science).BCA
MCA,MSC ( Computer Science )
Graduated in 2022 or 2023 Only with 70% and above in all academics
Good Communication
Job Location: SIPCOT, Siruseri, Chennai
Apply link : https://forms.office.com/Pages/ResponsePage.aspx?id=xXv5k9nOHE6DUIaS7Za9oqyRiK_P05VPnXJDDjk1bk1UMjRWVEtJM01LRERZUkNQVVJEWVhHUjlZWi4u
Skills Required: JAVA / Net / Testing/ RPA / SQL/ PHP with Logical and analytical thinking towards programming.
Eligibility:
B.E. / B.Tech/ME/Mtech CSE / IT / ECE / EEE
B.Sc (Computer Science).BCA
MCA,MSC ( Computer Science )
Graduated in 2022 or 2023 Only with 70% and above in all academics
Good Communication
Job Location: SIPCOT, Siruseri, Chennai
Apply link : https://forms.office.com/Pages/ResponsePage.aspx?id=xXv5k9nOHE6DUIaS7Za9oqyRiK_P05VPnXJDDjk1bk1UMjRWVEtJM01LRERZUkNQVVJEWVhHUjlZWi4u
Office
Please fill out this form
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
FresherOpportunityAlert
Hiring for MBA Freshers!
Freshers of 2023/2024 Batch !
Qualifications: MBA- HR / PGDM in HRM
Location: Chennai
Interested candidates please share your updated resume to ganeshkumar.rajakanna@episource.com
Hiring for MBA Freshers!
Freshers of 2023/2024 Batch !
Qualifications: MBA- HR / PGDM in HRM
Location: Chennai
Interested candidates please share your updated resume to ganeshkumar.rajakanna@episource.com
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
FresherOpportunityAlert
Macro Technology Solutions Hiring Freshers || .Net Trainee Developer for Trichy.
We are looking for candidates with a UG/PG Computer Science background (i.e., 2022/2023/2024) who have strong practical and theoretical knowledge in C/C++, OOPs, SQL, and RDBMS. The candidate should be based out of Trichy and available for immediate joining.
Title: .Net Trainee Developer
Location: Trichy
Duration: Full Time
Terms & Conditions:
The candidate should be from any UG/PG Computer science background (i.e., 2022/2023/2024 passed out).
The candidate should be based out of Trichy (i.e., home location).
The candidate should have consistently scored more than 75% in 10th, 12th, and graduation/post-graduation courses.
We are looking for immediate joiners only.
Interested can mail to hireme@macroglobal.co.uk
Macro Technology Solutions Hiring Freshers || .Net Trainee Developer for Trichy.
We are looking for candidates with a UG/PG Computer Science background (i.e., 2022/2023/2024) who have strong practical and theoretical knowledge in C/C++, OOPs, SQL, and RDBMS. The candidate should be based out of Trichy and available for immediate joining.
Title: .Net Trainee Developer
Location: Trichy
Duration: Full Time
Terms & Conditions:
The candidate should be from any UG/PG Computer science background (i.e., 2022/2023/2024 passed out).
The candidate should be based out of Trichy (i.e., home location).
The candidate should have consistently scored more than 75% in 10th, 12th, and graduation/post-graduation courses.
We are looking for immediate joiners only.
Interested can mail to hireme@macroglobal.co.uk
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Freshers/Interns for the HR Internship for our organization.
Job Responsibilities-
โขSourcing candidates through various channels, including job portals, social media platforms, and professional networks.
โขScreen resumes and conduct initial interviews to assess candidate qualifications and suitability for open positions.
โขCoordinate and schedule interviews between candidates and hiring managers, ensuring a seamless and efficient recruitment process.
โขContribute to new employee orientation and paperwork.
โขDrafting job descriptions and posting job openings on relevant platforms to
attract qualified candidates.
โขCollaborate with team members on special projects and initiatives to enhance our recruitment strategies and processes.
Location: Gurugram, Haryana
No. of working days: 5 days
*Immediate joiners and candidates from Delhi NCR region or nearby areas preferred
If you find the above mentioned profile suitable or have any references for the same, kindly share the updated resumes at dhanashree.surve@cybercube.co.in
Regards,
Dhanashree Surve
HR Executive
CyberCube Services Pvt. Ltd.
Job Responsibilities-
โขSourcing candidates through various channels, including job portals, social media platforms, and professional networks.
โขScreen resumes and conduct initial interviews to assess candidate qualifications and suitability for open positions.
โขCoordinate and schedule interviews between candidates and hiring managers, ensuring a seamless and efficient recruitment process.
โขContribute to new employee orientation and paperwork.
โขDrafting job descriptions and posting job openings on relevant platforms to
attract qualified candidates.
โขCollaborate with team members on special projects and initiatives to enhance our recruitment strategies and processes.
Location: Gurugram, Haryana
No. of working days: 5 days
*Immediate joiners and candidates from Delhi NCR region or nearby areas preferred
If you find the above mentioned profile suitable or have any references for the same, kindly share the updated resumes at dhanashree.surve@cybercube.co.in
Regards,
Dhanashree Surve
HR Executive
CyberCube Services Pvt. Ltd.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Aera Technology is hiring for Automation Engineer Intern
๐Apply here:
https://jobs.lever.co/aeratechnology/a198d34d-01a3-4cb6-bada-8d5d029717be
๐Apply here:
https://jobs.lever.co/aeratechnology/a198d34d-01a3-4cb6-bada-8d5d029717be
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Blueberry Digital Labs is hiring for Software Engineer- Intern
๐Apply here:
https://jobs.smartrecruiters.com/BlueberryLabsPrivateLimited/91749878-software-engineer-intern
๐Apply here:
https://jobs.smartrecruiters.com/BlueberryLabsPrivateLimited/91749878-software-engineer-intern
Blueberry Labs Private Limited
Blueberry Labs Private Limited is looking for a Software Engineer- Intern in Hyderabad, India
Job SummaryWe are looking for a Software Engineer Intern to join industry's brightest minds that are dedicated in inventing world class technologies in the area of Digital media and E Commerc...
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Parexel is hiring for Associate Software Engineer
Expected Salary: 4-8 LPA
๐Apply here:
https://jobs.parexel.com/en/job/-/-/877/63803954224
Expected Salary: 4-8 LPA
๐Apply here:
https://jobs.parexel.com/en/job/-/-/877/63803954224
Parexel
Find Jobs and Careers With Parexel, a Pharmaceutical Services Leader
Transform healthcare, trial new treatments, and reinvent medicine to change patientsโ lives โ and do it With Heart. Explore careers with Parexel today.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : Agoda
Role : SDE Internship ( Tech)
Batch : 2025/2026 passouts
Last date to apply is April 21,2024.
Link : https://careersatagoda.com/job/5417820-tech-internship-2024-india-based-gurgaon-office/
Role : SDE Internship ( Tech)
Batch : 2025/2026 passouts
Last date to apply is April 21,2024.
Link : https://careersatagoda.com/job/5417820-tech-internship-2024-india-based-gurgaon-office/
Careers at Agoda
Jobs - Careers at Agoda
Unfortunately, this job is no longer accepting new applications. Please use the search feature above to check out other opportunities at Agoda. Hear about future opportunities By submitting this form, you understand and agree to our privacy statement andโฆ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : Swiggy
Role : Associate Software Development Engineers
Batch : 2022/2023 passouts
Link : https://careers.swiggy.com/#/careers?src=linkedin&p=eyJwYWdlVHlwZSI6ImpkIiwiY3ZTb3VyY2UiOiJsaW5rZWRpbiIsInJlcUlkIjoxMTU1MywicmVxdWVzdGVyIjp7ImlkIjoibGlua2VkaW4iLCJjb2RlIjpudWxsLCJuYW1lIjoiIn19&reqid=11553
Role : Associate Software Development Engineers
Batch : 2022/2023 passouts
Link : https://careers.swiggy.com/#/careers?src=linkedin&p=eyJwYWdlVHlwZSI6ImpkIiwiY3ZTb3VyY2UiOiJsaW5rZWRpbiIsInJlcUlkIjoxMTU1MywicmVxdWVzdGVyIjp7ImlkIjoibGlua2VkaW4iLCJjb2RlIjpudWxsLCJuYW1lIjoiIn19&reqid=11553
Swiggy
Swiggy Careers
Swiggy is elevating lives across India by reimagining convenience with innovative products and solutions. Check out the exciting job opportunities at Swiggy!
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : Chainlink
Chainlink Block Magic Hackathon
Batch : 2024,2025,2026+working professionals
Prizes : worth $400k and opportunities at Chainlink.
Link : https://chn.lk/3xfv1t6
Chainlink Block Magic Hackathon
Batch : 2024,2025,2026+working professionals
Prizes : worth $400k and opportunities at Chainlink.
Link : https://chn.lk/3xfv1t6
Typeform
Blockmagic: A Chainlink Hackathon | Registration form
Registration form for the upcoming Chainlink Hackathon
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : Collins
Role : Internship at Collins and Prat and Whitney
Batch : 2025 female passouts from mechanical and allied branches only (Aerospace, Mechatronics, Industrial Engineering Management & Automobile)
Prizes worth 1 Lakh and Samsung Tab too.
Link : https://bit.ly/CollinsInternship
Share it with your core branch friends.
Role : Internship at Collins and Prat and Whitney
Batch : 2025 female passouts from mechanical and allied branches only (Aerospace, Mechatronics, Industrial Engineering Management & Automobile)
Prizes worth 1 Lakh and Samsung Tab too.
Link : https://bit.ly/CollinsInternship
Share it with your core branch friends.
Mettl
MECHAURA 2024 on Mercer-Mettl Xathon
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Algonox Technologies is hiring for Software Engineer
Expected Salary: 5-10 LPA
๐Apply here: https://linkedin.com/jobs/view/3891843385/
Expected Salary: 5-10 LPA
๐Apply here: https://linkedin.com/jobs/view/3891843385/
#include <bits/stdc++.h>
using namespace std;
bool wordBreak(string s, vector<string>& wordDict) {
unordered_set<string> dict(wordDict.begin(), wordDict.end());
vector<bool> dp(s.size() + 1, false);
dp[0] = true;
for (int i = 1; i <= s.size(); ++i) {
for (int j = i - 1; j >= 0; --j) {
if (dp[j]) {
string word = s.substr(j, i - j);
if (dict.find(word) != dict.end()) {
dp[i] = true;
break;
}
}
}
}
return dp[s.size()];
}
int main() {
string s = "penappleapple";
vector<string> wordDict = {"apple","pen"};
cout << (wordBreak(s, wordDict) ? "true" : "false") << endl;
return 0;
}
Kitty in horror house
Salesforce โ
using namespace std;
bool wordBreak(string s, vector<string>& wordDict) {
unordered_set<string> dict(wordDict.begin(), wordDict.end());
vector<bool> dp(s.size() + 1, false);
dp[0] = true;
for (int i = 1; i <= s.size(); ++i) {
for (int j = i - 1; j >= 0; --j) {
if (dp[j]) {
string word = s.substr(j, i - j);
if (dict.find(word) != dict.end()) {
dp[i] = true;
break;
}
}
}
}
return dp[s.size()];
}
int main() {
string s = "penappleapple";
vector<string> wordDict = {"apple","pen"};
cout << (wordBreak(s, wordDict) ? "true" : "false") << endl;
return 0;
}
Kitty in horror house
Salesforce โ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
#include <bits/stdc++.h> using namespace std; bool wordBreak(string s, vector<string>& wordDict) { unordered_set<string> dict(wordDict.begin(), wordDict.end()); vector<bool> dp(s.size() + 1, false); dp[0] = true; for (int i = 1; i <=โฆ
bool helpKitty(string s,vector<string>wordDict){
unordered_map<string, int> mp;
for (auto it : wordDict) mp[it]++;
string str = "";
for (int i = 0; i < s.size(); i++)
{
str += s[i];
if (mp[str] > 0) str = "";
}
return (str=="");
}
unordered_map<string, int> mp;
for (auto it : wordDict) mp[it]++;
string str = "";
for (int i = 0; i < s.size(); i++)
{
str += s[i];
if (mp[str] > 0) str = "";
}
return (str=="");
}
#include <iostream>
#include <vector>
#include <set>
using namespace std;
int getSmallestArea(vector<vector<int>>& grid) {
int rows = grid.size();
if (rows == 0) return 0;
int cols = grid[0].size();
if (cols == 0) return 0;
set<int> rowsSet, colsSet;
for (int i = 0; i < rows; ++i) {
for (int j = 0; j < cols; ++j) {
if (grid[i][j] == 1) {
rowsSet.insert(i);
colsSet.insert(j);
}
}
}
int width = colsSet.empty() ? 0 : *colsSet.rbegin() - *colsSet.begin() + 1;
int height = rowsSet.empty() ? 0 : *rowsSet.rbegin() - *rowsSet.begin() + 1;
return width * height;
}
Salesforce โ
Get smallest Area
#include <vector>
#include <set>
using namespace std;
int getSmallestArea(vector<vector<int>>& grid) {
int rows = grid.size();
if (rows == 0) return 0;
int cols = grid[0].size();
if (cols == 0) return 0;
set<int> rowsSet, colsSet;
for (int i = 0; i < rows; ++i) {
for (int j = 0; j < cols; ++j) {
if (grid[i][j] == 1) {
rowsSet.insert(i);
colsSet.insert(j);
}
}
}
int width = colsSet.empty() ? 0 : *colsSet.rbegin() - *colsSet.begin() + 1;
int height = rowsSet.empty() ? 0 : *rowsSet.rbegin() - *rowsSet.begin() + 1;
return width * height;
}
Salesforce โ
Get smallest Area
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
#include <iostream> #include <vector> #include <set> using namespace std; int getSmallestArea(vector<vector<int>>& grid) { int rows = grid.size(); if (rows == 0) return 0; int cols = grid[0].size(); if (cols == 0) return 0; set<int>โฆ
int getSmallestArea(vector<vector<int>> grid){
set<int> rows, column;
int n = grid.size(), m = grid[0].size();
for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
if(grid[i][j]==1){
rows.insert(i);
column.insert(j);
}
}
}
return rows.size()*column.size();
}
Get Smallest Area
Salesforce โ
set<int> rows, column;
int n = grid.size(), m = grid[0].size();
for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
if(grid[i][j]==1){
rows.insert(i);
column.insert(j);
}
}
}
return rows.size()*column.size();
}
Get Smallest Area
Salesforce โ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
int closestToTarget(vector<int> oxygenLevels, int target) { int n = oxygenLevels.size(); int minDiff = abs(oxygenLevels[0] - target); // Initialize the minimum difference with the first oxygen level // Iterate through the oxygen levels to findโฆ
#include <iostream>
#include <vector>
#include <algorithm>
#include <climits>
using namespace std;
int closestToTarget(vector<int>& oxygenLevels, int target) {
int n = oxygenLevels.size();
int minDiff = INT_MAX;
for (int i = 0; i < n; ++i) {
int andValue = oxygenLevels[i];
for (int j = i; j < n; ++j) {
andValue &= oxygenLevels[j];
minDiff = min(minDiff, abs(andValue - target));
if (andValue == 0) break;
}
}
return minDiff;
}
Optimum oxygen
Salesforce โ
#include <vector>
#include <algorithm>
#include <climits>
using namespace std;
int closestToTarget(vector<int>& oxygenLevels, int target) {
int n = oxygenLevels.size();
int minDiff = INT_MAX;
for (int i = 0; i < n; ++i) {
int andValue = oxygenLevels[i];
for (int j = i; j < n; ++j) {
andValue &= oxygenLevels[j];
minDiff = min(minDiff, abs(andValue - target));
if (andValue == 0) break;
}
}
return minDiff;
}
Optimum oxygen
Salesforce โ
#include <unordered_map>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
class designCache {
public:
class Node {
public:
int key;
int val;
Node* prev;
Node* next;
Node(int key, int val) {
this->key = key;
this->val = val;
}
};
Node* head = new Node(-1, -1);
Node* tail = new Node(-1, -1);
int cap;
unordered_map<int, Node*> m;
designCache(int capacity) {
cap = capacity;
head->next = tail;
tail->prev = head;
}
void addNode(Node* newnode) {
Node* temp = head->next;
newnode->next = temp;
newnode->prev = head;
head->next = newnode;
temp->prev = newnode;
}
void deleteNode(Node* delnode) {
Node* prevv = delnode->prev;
Node* nextt = delnode->next;
prevv->next = nextt;
nextt->prev = prevv;
}
int get(int key) {
if (m.find(key) != m.end()) {
Node* resNode = m[key];
int ans = resNode->val;
m.erase(key);
deleteNode(resNode);
addNode(resNode);
m[key] = head->next;
return ans;
}
return -1;
}
void put(int key, int value) {
if (m.find(key) != m.end()) {
Node* curr = m[key];
m.erase(key);
deleteNode(curr);
}
if (m.size() == cap) {
m.erase(tail->prev->key);
deleteNode(tail->prev);
}
addNode(new Node(key, value));
m[key] = head->next;
}
};
int main() {
string attribs, attrib;
getline(cin, attribs);
stringstream ss(attribs);
int capacity, key, val;
cin >> capacity;
designCache obj(capacity);
while (getline(ss, attrib, ' ')) {
if (attrib == "put") {
cin >> key >> val;
obj.put(key, val);
cout << "null ";
} else if (attrib == "get") {
cin >> key;
val = obj.get(key);
cout << val << " ";
}
}
return 0;
}.
Design a cache โ
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
class designCache {
public:
class Node {
public:
int key;
int val;
Node* prev;
Node* next;
Node(int key, int val) {
this->key = key;
this->val = val;
}
};
Node* head = new Node(-1, -1);
Node* tail = new Node(-1, -1);
int cap;
unordered_map<int, Node*> m;
designCache(int capacity) {
cap = capacity;
head->next = tail;
tail->prev = head;
}
void addNode(Node* newnode) {
Node* temp = head->next;
newnode->next = temp;
newnode->prev = head;
head->next = newnode;
temp->prev = newnode;
}
void deleteNode(Node* delnode) {
Node* prevv = delnode->prev;
Node* nextt = delnode->next;
prevv->next = nextt;
nextt->prev = prevv;
}
int get(int key) {
if (m.find(key) != m.end()) {
Node* resNode = m[key];
int ans = resNode->val;
m.erase(key);
deleteNode(resNode);
addNode(resNode);
m[key] = head->next;
return ans;
}
return -1;
}
void put(int key, int value) {
if (m.find(key) != m.end()) {
Node* curr = m[key];
m.erase(key);
deleteNode(curr);
}
if (m.size() == cap) {
m.erase(tail->prev->key);
deleteNode(tail->prev);
}
addNode(new Node(key, value));
m[key] = head->next;
}
};
int main() {
string attribs, attrib;
getline(cin, attribs);
stringstream ss(attribs);
int capacity, key, val;
cin >> capacity;
designCache obj(capacity);
while (getline(ss, attrib, ' ')) {
if (attrib == "put") {
cin >> key >> val;
obj.put(key, val);
cout << "null ";
} else if (attrib == "get") {
cin >> key;
val = obj.get(key);
cout << val << " ";
}
}
return 0;
}.
Design a cache โ
static int maximize(int arr[], int n)
{
int prefixSum[] = new int[n];
int totalSum = 0;
int maxPrefixSum = 0;
for (int i = 0; i < n; i++)
{
prefixSum[i] = maxPrefixSum ;
maxPrefixSum += arr[i];
totalSum += arr[i];
maxPrefixSum = Math.max(maxPrefixSum, -totalSum);
}
int maxSum = Math.max(totalSum, maxPrefixSum);
int suffixSum = 0;
for (int i = n - 1; i >= 0; --i)
{
suffixSum -= arr[i];
maxSum = Math.max(maxSum, suffixSum + prefixSum[i]);
}
return maxSum;
}. add this if size == 1:
return arr[0]
DE Shaw โ
{
int prefixSum[] = new int[n];
int totalSum = 0;
int maxPrefixSum = 0;
for (int i = 0; i < n; i++)
{
prefixSum[i] = maxPrefixSum ;
maxPrefixSum += arr[i];
totalSum += arr[i];
maxPrefixSum = Math.max(maxPrefixSum, -totalSum);
}
int maxSum = Math.max(totalSum, maxPrefixSum);
int suffixSum = 0;
for (int i = n - 1; i >= 0; --i)
{
suffixSum -= arr[i];
maxSum = Math.max(maxSum, suffixSum + prefixSum[i]);
}
return maxSum;
}. add this if size == 1:
return arr[0]
DE Shaw โ