def stabilizeTheSystem(cls, input1):
input1= str(input1)
return input1.replace('0' , 'S')
Stabilize the system โ
input1= str(input1)
return input1.replace('0' , 'S')
Stabilize the system โ
Olivia's Garden
maxBeautyScore
Accenture โ
maxBeautyScore
Accenture โ
Math Test
Accenture โ
Accenture โ
Leap Year
Accenture โ
Accenture โ
Diwali Contest โ
long getMaxPrisonHole(int n, int m, vector<int> x, vector<int> y) {
vector<bool> xb(n+1, true);
vector<bool> yb(m+1, true);
for(int i : x) {
xb[i] = false;
}
for(int i : y) {
yb[i] = false;
}
long cx = 0, xm = LONG_MIN, cy = 0, ym = LONG_MIN;
for(int i = 0; i < xb.size(); i++) {
if(xb[i]) {
cx = 0;
} else {
cx++;
xm = max(cx, xm);
}
}
for(int i = 0; i < yb.size(); i++) {
if(yb[i]) {
cy = 0;
} else {
cy++;
ym = max(cy, ym);
}
}
return (xm+1) * (ym+1);
}
Swiggy
Prison Break โ
vector<bool> xb(n+1, true);
vector<bool> yb(m+1, true);
for(int i : x) {
xb[i] = false;
}
for(int i : y) {
yb[i] = false;
}
long cx = 0, xm = LONG_MIN, cy = 0, ym = LONG_MIN;
for(int i = 0; i < xb.size(); i++) {
if(xb[i]) {
cx = 0;
} else {
cx++;
xm = max(cx, xm);
}
}
for(int i = 0; i < yb.size(); i++) {
if(yb[i]) {
cy = 0;
} else {
cy++;
ym = max(cy, ym);
}
}
return (xm+1) * (ym+1);
}
Swiggy
Prison Break โ
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];
}.
Swiggy
Selecting Stocks โ
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];
}.
Swiggy
Selecting Stocks โ
#include <bits/stdc++.h>
using namespace std;
int jumps(int flagHeight, int bigJump) {
}.
Swiggy
Jump to The Flag โ
using namespace std;
int jumps(int flagHeight, int bigJump) {
return flagHeight / bigJump+flagheight% bigJump;
}.
Swiggy
Jump to The Flag โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company โ Bristol Myers Squibb
Role โ Data Scientist
Exp. โ 0-3 yrs
Responsibilities โ
The Data Scientist I will play a crucial role in supporting operational analytics across GPS to ensure products continue to serve most pressing GPS analytics needs, with potential opportunities to build new advanced analytics capabilities such as predictive modelling, simulation, and optimization. The Data Scientist I should have a strong interest in solving business problems, and an eagerness to work on all parts of the analytics value chain, from partnering with IT on data pipelines to operationalizing predictive models in the service of our patients around the world.
Skills โ
โขProven experience in a data and analytics role, including direct development experience.
โขExperience working with large datasets, data visualization tools, statistical software packages and platforms (specifically R, Python, advanced SQL, Domino, AWS, GitHub, dbt, Tableau)
โขExperience with major GPS applications (SAP, Oracle, LIMS, Infinity, MES) is a plus.
โขExperience with biotech product development, manufacturing operations, supply chain, and quality control is a significant plus.
โขExperience in the biopharma industry a plus.
Apply Here โ https://www.linkedin.com/jobs/view/3912975400
Role โ Data Scientist
Exp. โ 0-3 yrs
Responsibilities โ
The Data Scientist I will play a crucial role in supporting operational analytics across GPS to ensure products continue to serve most pressing GPS analytics needs, with potential opportunities to build new advanced analytics capabilities such as predictive modelling, simulation, and optimization. The Data Scientist I should have a strong interest in solving business problems, and an eagerness to work on all parts of the analytics value chain, from partnering with IT on data pipelines to operationalizing predictive models in the service of our patients around the world.
Skills โ
โขProven experience in a data and analytics role, including direct development experience.
โขExperience working with large datasets, data visualization tools, statistical software packages and platforms (specifically R, Python, advanced SQL, Domino, AWS, GitHub, dbt, Tableau)
โขExperience with major GPS applications (SAP, Oracle, LIMS, Infinity, MES) is a plus.
โขExperience with biotech product development, manufacturing operations, supply chain, and quality control is a significant plus.
โขExperience in the biopharma industry a plus.
Apply Here โ https://www.linkedin.com/jobs/view/3912975400
heights = [int(i) for i in input().split()]
freq_dict = {}
for h in heights:
if h in freq_dict:
freq_dict[h] += 1
else:
freq_dict[h] = 1
for h in sorted(freq_dict):
print(h, freq_dict[h])
freq_dict = {}
for h in heights:
if h in freq_dict:
freq_dict[h] += 1
else:
freq_dict[h] = 1
for h in sorted(freq_dict):
print(h, freq_dict[h])