Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
WE'RE NOW ON DISCORD โค
OUR Coding Community โจ
We've launched our new discord server, you all can join there ASAP
Here's the exclusive link ๐
https://discord.gg/5YrwWzaF
Join fast. See you all โค
OUR Coding Community โจ
We've launched our new discord server, you all can join there ASAP
Here's the exclusive link ๐
https://discord.gg/5YrwWzaF
Join fast. See you all โค
Discord
Join the Coding Zone Discord Server!
Check out the Coding Zone community on Discord - hang out with 231 other members and enjoy free voice and text chat.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: ADP
Role: Associate Software Engineer
Batch eligible: 2024 and 2025 grads
Apply: https://tech.adp.com/en/jobs/5001062749106/associate-software-engineer/
Role: Associate Software Engineer
Batch eligible: 2024 and 2025 grads
Apply: https://tech.adp.com/en/jobs/5001062749106/associate-software-engineer/
๐1
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
int mrt2(const string& st) {
int n = st.length();
vector<vector<int>> lst(n, vector<int>(n, 0));
for (int i = 0; i < n; ++i)
lst[i][i] = 1;
for (int k = 2; k <= n; ++k) {
for (int i = 0; i <= n - k; ++i) {
int j = i + k - 1;
if (st[i] == st[j]) {
if (k == 2)
lst[i][j] = 2;
else
lst[i][j] = lst[i + 1][j - 1] + 2;
} else {
lst[i][j] = max(lst[i + 1][j], lst[i][j - 1]);
}
}
}
return lst[0][n - 1];
}
int delete_op(const string& st) {
int n = st.length();
int lps = mrt2(st);
return n - lps;
}
bool rearrange(const string& S) {
unordered_map<char, int> freq;
for (char c : S) {
freq[c]++;
}
int odd_count = 0;
for (auto& p : freq) {
if (p.second % 2 == 1)
odd_count++;
}
return odd_count <= 1;
}
vector<int> mrt(const string& S, const vector<pair<int, int>>& arr) {
vector<int> res;
for (auto& range : arr) {
string temp = S.substr(range.first - 1, range.second - range.first + 1);
int result = rearrange(temp) ? 0 : delete_op(temp);
res.push_back(result);
}
return res;
}
String and queries
OLAโ
๐1
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int minimizeDiff(int a, vector<int>& b) {
int c = b.size();
int d = *max_element(b.begin(), b.end());
int e = *min_element(b.begin(), b.end());
if ((d - e) <= a) {
return (d - e);
}
int f = (d + e) / 2;
for (int g = 0; g < c; g++) {
if (b[g] > f) {
b[g] -= a;
} else {
b[g] += a;
}
}
d = *max_element(b.begin(), b.end());
e = *min_element(b.begin(), b.end());
return (d - e);
}
ICE CREAM Sticks โ
Intuit
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include<bits/stdc++.h>
using namespace std;
#define ll long long
const ll mod = 1e9 + 7;
ll add(ll x, ll y)
{
return (x + y) % mod;
}
ll mul(ll x, ll y)
{
return (x * y) % mod;
}
ll dp[101][101][101];
ll solver(ll i, ll maxm, ll n, ll m, ll totalCost)
{
if (i == n)
{
if (totalCost == 0)
{
return 1;
}
else
{
return 0;
}
}
if (dp[i][maxm][totalCost] != -1)
{
return dp[i][maxm][totalCost];
}
ll temp = 0;
for (int j = 1;j <= m;j++)
{
if (j > maxm)
{
temp = add(temp, solver(i + 1, j, n, m, totalCost - 1));
}
else
{
temp = add(temp, solver(i + 1, maxm, n, m, totalCost));
}
}
return dp[i][maxm][totalCost] = temp;
}
void solve(vector<ll>n, vector<ll> m, vector<ll> totalCost)
{
ll q = n.size();
vector<ll>answer(q);
for (int j = 0;j < q;j++)
{
memset(dp, -1, sizeof(dp));
ll N= n[j];
ll M= m[j];
ll Tot= totalCost[j];
ll ans = 0;
for (int i = 1;i <= M;i++)
{
ans = add(ans, solver(1, i, N, M, Tot));
}
answer.push_back(ans);
}
for (int j = 0;j < q;j++)
{
cout << answer[j] << endl;
}
return;
}
/// reconstracting array โ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
public class Solution {
public static long calculateTotalRegion(int[] h) {
int n = h.length;
long[] l = new long[n];
long[] r = new long[n];
for (int i = 1; i < n; i++) {
int j = i - 1;
while (j >= 0 && h[j] <= h[i]) {
l[i] += l[j];
j -= l[j];
}
}
for (int i = n - 2; i >= 0; i--) {
int j = i + 1;
while (j < n && h[j] <= h[i]) {
r[i] += r[j];
j += r[j];
}
}
long t = 0;
for (int i = 0; i < n; i++) {
t += l[i] + r[i] - 1;
}
return t;
}
BNY Mellon โ
public static long calculateTotalRegion(int[] h) {
int n = h.length;
long[] l = new long[n];
long[] r = new long[n];
for (int i = 1; i < n; i++) {
int j = i - 1;
while (j >= 0 && h[j] <= h[i]) {
l[i] += l[j];
j -= l[j];
}
}
for (int i = n - 2; i >= 0; i--) {
int j = i + 1;
while (j < n && h[j] <= h[i]) {
r[i] += r[j];
j += r[j];
}
}
long t = 0;
for (int i = 0; i < n; i++) {
t += l[i] + r[i] - 1;
}
return t;
}
BNY Mellon โ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll solve(vector<ll>& arr)
{
unordered_map<ll,ll>freq;
for (auto it:arr)
{
freq[it]++;
}
vector<ll>un;
for (auto& it:freq)
{
un.push_back(it.first);
}
sort(un.begin(),un.end());
ll val=un[0],res=0,prev=0;
for(auto num:un)
{
if (num==val)
{
ll cur=(prev+1)*freq[num];
res=(res+cur);
prev=cur;
val++;
}
else
{
prev=freq[num];
res=(res+freq[num]);
val=num+1;
}
}
return res;
}
signed main() {
ll n; cin>>n;
vector<ll>a(n);
for(ll i=0;i<n;i++) cin>>a[i];
cout<<solve(a);
return 0;
}
Meesho โ
using namespace std;
typedef long long ll;
ll solve(vector<ll>& arr)
{
unordered_map<ll,ll>freq;
for (auto it:arr)
{
freq[it]++;
}
vector<ll>un;
for (auto& it:freq)
{
un.push_back(it.first);
}
sort(un.begin(),un.end());
ll val=un[0],res=0,prev=0;
for(auto num:un)
{
if (num==val)
{
ll cur=(prev+1)*freq[num];
res=(res+cur);
prev=cur;
val++;
}
else
{
prev=freq[num];
res=(res+freq[num]);
val=num+1;
}
}
return res;
}
signed main() {
ll n; cin>>n;
vector<ll>a(n);
for(ll i=0;i<n;i++) cin>>a[i];
cout<<solve(a);
return 0;
}
Meesho โ
๐1
vector<int> solution(vector<int> numbers) {
if (numbers.size() < 2) return numbers;
vector<int> f = {numbers[0]}, s = {numbers[1]};
for (int i = 2; i < numbers.size(); ++i) {
int cf = 0, cs = 0;
for (int x : f) cf += x > numbers[i];
for (int x : s) cs += x > numbers[i];
if (cf > cs || (cf == cs && f.size() <= s.size())) {
f.push_back(numbers[i]);
} else {
s.push_back(numbers[i]);
}
}
f.insert(f.end(), s.begin(), s.end());
return f;
}
Visa โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Fractal is hiring for Data Engineer (AWS + Python Developer)
Experience: 0 - 3 years
Expected Salary: 10-16 LPA
Apply here:
https://fractal.wd1.myworkdayjobs.com/Careers/job/Bengaluru/Data-Engineer--AWS---Python-Developer-_SR-26409
Experience: 0 - 3 years
Expected Salary: 10-16 LPA
Apply here:
https://fractal.wd1.myworkdayjobs.com/Careers/job/Bengaluru/Data-Engineer--AWS---Python-Developer-_SR-26409
Myworkdayjobs
AWS Data Engineer
It's fun to work in a company where people truly BELIEVE in what they are doing! We're committed to bringing passion and customer focus to the business. Job Profile - Senior Engineer AWS cloud Exp - 6-10 years Job Location โ Bangalore Responsibilities: Asโฆ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Liven is hiring for Junior Data Engineer (Remote)
Experience: 0 - 1 years
Expected Salary: 7 - 14 LPA
Apply here: https://ats.rippling.com/liven/jobs/65a9816d-7b41-4a1a-ad7c-0226766276e1?jobSite=LinkedIn
Experience: 0 - 1 years
Expected Salary: 7 - 14 LPA
Apply here: https://ats.rippling.com/liven/jobs/65a9816d-7b41-4a1a-ad7c-0226766276e1?jobSite=LinkedIn
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Zuno is hiring for Campus Ambassador Program
Location: Remote
Apply Link: https://forms.gle/L7iexyjPDhf44fLD7
Referral/ Enrollment No:
Good opportunity for college students
Location: Remote
Apply Link: https://forms.gle/L7iexyjPDhf44fLD7
Referral/ Enrollment No:
ZW1212
Good opportunity for college students
Google Docs
Zuno by foundit || Campus Program
Hello there,
Welcome to Zuno by foundit. You are one step away from joining India's most popular platform for internships and fresher jobs.
This is your moment to shine on your campus. Represent us and receive exclusive benefits and rewards.
Please provideโฆ
Welcome to Zuno by foundit. You are one step away from joining India's most popular platform for internships and fresher jobs.
This is your moment to shine on your campus. Represent us and receive exclusive benefits and rewards.
Please provideโฆ