๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <iostream>
#include <vector>
using namespace std;
int main() {
int N;
cin >> N;
vector<vector<int>> expenses(N, vector<int>(N));
for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++) {
cin >> expenses[i][j];
}
}
int maxSum = -1;
int maxMonthIndex = -1;
for (int i = 0; i < N; i++) {
int monthSum = 0;
for (int j = 0; j < N; j++) {
monthSum += expenses[i][j];
}
if (monthSum > maxSum) {
maxSum = monthSum;
maxMonthIndex = i;
}
}
for (int j = 0; j < N; j++) {
cout << expenses[maxMonthIndex][j];
if (j < N - 1) {
cout << " ";
}
}
cout << endl;
return 0;
}
Sunlife โ
#include <vector>
using namespace std;
int main() {
int N;
cin >> N;
vector<vector<int>> expenses(N, vector<int>(N));
for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++) {
cin >> expenses[i][j];
}
}
int maxSum = -1;
int maxMonthIndex = -1;
for (int i = 0; i < N; i++) {
int monthSum = 0;
for (int j = 0; j < N; j++) {
monthSum += expenses[i][j];
}
if (monthSum > maxSum) {
maxSum = monthSum;
maxMonthIndex = i;
}
}
for (int j = 0; j < N; j++) {
cout << expenses[maxMonthIndex][j];
if (j < N - 1) {
cout << " ";
}
}
cout << endl;
return 0;
}
Sunlife โ
#include <bits/stdc++.h>
using namespace std;
int solve(vector<int>& A) {
int n = A.size();
sort(A.begin(), A.end());
int b = A[n / 2];
int a = 0;
for (int i : A) {
a += abs(i - b);
}
return a;
}
Tiger Analytics โ
using namespace std;
int solve(vector<int>& A) {
int n = A.size();
sort(A.begin(), A.end());
int b = A[n / 2];
int a = 0;
for (int i : A) {
a += abs(i - b);
}
return a;
}
Tiger Analytics โ
#include <bits/stdc++.h>
using namespace std;
bool feasible(int d, const vector<int>& u, int k) {
int n = u.size();
for (int i = 0; i < n; i++) {
int r = u[i];
int cnt = 0;
for (int j = i + 1; j < n; j++) {
if (u[j] - r > d) break;
cnt++;
if (cnt == k) return true;
}
}
return false;
}
int minDist(int n, const vector<int>& o, int k) {
set<int> s;
for (int i = 1; i <= n; i++) s.insert(i);
for (int x : o) s.erase(x);
vector<int> u(s.begin(), s.end());
int l = 0, r = u.back() - u[0];
while (l < r) {
int m = (l + r) / 2;
if (feasible(m, u, k)) r = m;
else l = m + 1;
}
return l;
}
Tiger Analyticsโ
#include <bits/stdc++.h>
using namespace std;
string solve(string s) {
string result;
multiset<char> chars(s.begin(), s.end());
while (!chars.empty()) {
set<char> used;
for (auto it = chars.begin(); it != chars.end();) {
if (used.empty() || *it > *used.rbegin()) {
result += *it;
used.insert(*it);
it = chars.erase(it);
} else {
++it;
}
}
}
return result;
}
Tiger Analytics โ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <iostream>
#include <vector>
using namespace std;
bool isTarget(vector<vector<int>>& g, int a, int b, int i, int j) {
int d[4][2] = {{-1, 0}, {1, 0}, {0, -1}, {0, 1}};
for (int k = 0; k < 4; ++k) {
int ni = i + d[k][0], nj = j + d[k][1];
if (ni >= 0 && ni < a && nj >= 0 && nj < b) {
if (g[ni][nj] <= g[i][j]) return false;
}
}
return true;
}
void solve(vector<vector<int>>& g, int a, int b) {
int ti = -1, tj = -1;
for (int i = 0; i < a; ++i) {
for (int j = 0; j < b; ++j) {
if (isTarget(g, a, b, i, j)) {
if (ti == -1 || i < ti || (i == ti && j < tj)) {
ti = i; tj = j;
}
}
}
}
if (ti != -1) {
g[ti][tj]++;
while (isTarget(g, a, b, ti, tj)) {
g[ti][tj]++;
}
}
}
void printGrid(vector<vector<int>>& g) {
for (auto& row : g) {
for (int v : row) {
cout << v << " ";
}
cout << endl;
}
}
int main() {
int a, b;
cin >> a >> b;
vector<vector<int>> g(a, vector<int>(b));
for (int i = 0; i < a; ++i) {
for (int j = 0; j < b; ++j) {
cin >> g[i][j];
}
}
solve(g, a, b);
printGrid(g);
return 0;
}
Target positionโ
Walmart
def ss(arr):
total_sum = sum(arr)
n = len(arr)
a = set()
a.add(0)
for num in arr:
b = set()
for s in a:
b.add(s + num)
a.update(b)
return 0 in a
N = int(input())
arr = list(map(int, input().split()))
result = ss(arr)
print("true" if result else "false")
Negate subsequence
Walmart โ
#include<bits/stdc++.h>
using namespace std;
int solve(int N, int M, vector<int>& P, vector<int>& W) {
int wateredCount = 0;
int i = 0;
for (int j = 0; j < M && i < N; ++j) {
int water = W[j];
if (i < N - 1) {
if (water >= P[i] + P[i + 1]) {
wateredCount += 2;
P[i] = 0;
P[i + 1] = 0;
i += 2;
} else if (water >= P[i]) {
wateredCount++;
P[i] = 0;
i++;
} else if (water >= P[i + 1]) {
wateredCount++;
P[i + 1] = 0;
i += 2;
} else {
i++;
}
} else {
if (water >= P[i]) {
wateredCount++;
P[i] = 0;
}
break;
}
}
return wateredCount;
}
int main() {
int N, M;
cin >> N >> M;
vector<int> P(N);
vector<int> W(M);
for (int i = 0; i < N; ++i) {
cin >> P[i];
}
for (int i = 0; i < M; ++i) {
cin >> W[i];
}
int result = solve(N, M, P, W);
cout << result << endl;
return 0;
}
Water Downโ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Interested candidates can send your resumes to catherine.s@navabrindit.com
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Proacure is hiring for Software Engineer Intern
Experience: 0 - 1 year's
Apply here: https://www.linkedin.com/jobs/view/4062610638/?alternateChannel=search
Experience: 0 - 1 year's
Apply here: https://www.linkedin.com/jobs/view/4062610638/?alternateChannel=search
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐ConcertAI is hiring for Software Engineer
Experience: 0 - 1 year's
Expected Salary: 15-30 LPA
Apply here: https://careers.concertai.com/us/en/job/COQCONUSP100418EXTERNALENUS/Software-Engineer
๐Teradata is hiring for Software Engineer (Remote)
Experience: 0 - 1 year's
Expected Salary: 15-25 LPA
Apply here: https://www.linkedin.com/jobs/view/4062144496/?alternateChannel=search
๐Acheron Software Consultancy is hiring for Associate Software Engineer
Experience: 0 - 1 year's
Expected Salary: 5-10 LPA
Apply here: https://acheron-tech.com/careers/associate-software-engineer-hiring-freshers-hyderabad-html-css-javascript
๐e2open is hiring for Software Engineer
Experience: 0 - 1 year's
Expected Salary: 7-14 LPA
Apply here: https://www.linkedin.com/jobs/view/4062274047/?alternateChannel=search
Experience: 0 - 1 year's
Expected Salary: 15-30 LPA
Apply here: https://careers.concertai.com/us/en/job/COQCONUSP100418EXTERNALENUS/Software-Engineer
๐Teradata is hiring for Software Engineer (Remote)
Experience: 0 - 1 year's
Expected Salary: 15-25 LPA
Apply here: https://www.linkedin.com/jobs/view/4062144496/?alternateChannel=search
๐Acheron Software Consultancy is hiring for Associate Software Engineer
Experience: 0 - 1 year's
Expected Salary: 5-10 LPA
Apply here: https://acheron-tech.com/careers/associate-software-engineer-hiring-freshers-hyderabad-html-css-javascript
๐e2open is hiring for Software Engineer
Experience: 0 - 1 year's
Expected Salary: 7-14 LPA
Apply here: https://www.linkedin.com/jobs/view/4062274047/?alternateChannel=search
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Myworkdayjobs
Software Engineer
Job Title: Software Engineer About Trellix: Trellix is a global company redefining the future of cybersecurity and soulful work. The companyโs comprehensive, open and native cybersecurity platform helps organizations confronted by todayโs most advanced threatsโฆ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Role: DevOps Freshers
Send your resume to Nitika.Sadele@MoreYeahs.in
Send your resume to Nitika.Sadele@MoreYeahs.in