๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
int solve(int n, int k, int a) { int ans = (k + a - 1) % n; if (ans == 0) { ans = n; } return ans; } Card โ
Flipkart
def last_candy_recipient(N, K, A):
remaining_candies = K % N
last_recipient = (A + remaining_candies - 1) % N
if last_recipient == 0:
return N
else:
return last_recipient
Card โ
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define maxn 1000005
#define inf 1e9
string ff(ll a, ll b, ll c, ll d) {
ll kit = (b - a + 1) * (d - c + 1);
ll kat = (b - a + 1) * (d - c);
return (kat > kit / 2) ? "YES" : "NO";
}
int main() {
ll a, b, c, d;
cin >> a >> b;
cin >> c >> d;
cout << ff(a, b, c, d) << endl;
return 0;
}
Guess the full form โ
Flipkart
using namespace std;
#define ll long long
#define maxn 1000005
#define inf 1e9
string ff(ll a, ll b, ll c, ll d) {
ll kit = (b - a + 1) * (d - c + 1);
ll kat = (b - a + 1) * (d - c);
return (kat > kit / 2) ? "YES" : "NO";
}
int main() {
ll a, b, c, d;
cin >> a >> b;
cin >> c >> d;
cout << ff(a, b, c, d) << endl;
return 0;
}
Guess the full form โ
Flipkart
def probability_comparison(L1, R1, L2, R2):
alice_wins = 0
for i in range(L1, R1+1):
for j in range(L2, R2+1):
if i > j:
alice_wins += 1
total_outcomes = (R1 - L1 + 1) * (R2 - L2 + 1)
if alice_wins > total_outcomes / 2:
return "YES"
else:
return "NO"
L1, R1, L2, R2 = map(int, input().split())
print(probability_comparison(L1, R1, L2, R2))
Prediction โ
alice_wins = 0
for i in range(L1, R1+1):
for j in range(L2, R2+1):
if i > j:
alice_wins += 1
total_outcomes = (R1 - L1 + 1) * (R2 - L2 + 1)
if alice_wins > total_outcomes / 2:
return "YES"
else:
return "NO"
L1, R1, L2, R2 = map(int, input().split())
print(probability_comparison(L1, R1, L2, R2))
Prediction โ
def decode_secret_code(S, N):
if N == 1:
return S
rows = [''] * N
row = 0
down = True
for char in S:
rows[row] += char
if row == 0:
down = True
elif row == N - 1:
down = False
if down:
row += 1
else:
row -= 1
secret_code = ''.join(rows)
return secret_code
S = input()
N = int(input())
result = decode_secret_code(S, N)
print(result)
Flipkart โ
if N == 1:
return S
rows = [''] * N
row = 0
down = True
for char in S:
rows[row] += char
if row == 0:
down = True
elif row == N - 1:
down = False
if down:
row += 1
else:
row -= 1
secret_code = ''.join(rows)
return secret_code
S = input()
N = int(input())
result = decode_secret_code(S, N)
print(result)
Flipkart โ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
def decode_secret_code(S, N): if N == 1: return S rows = [''] * N row = 0 down = True for char in S: rows[row] += char if row == 0: down = True elif row == N - 1: downโฆ
#include <iostream>
#include <vector>
using namespace std;
string findPassword(string s, int n) {
if (n == 1)
return s;
vector<vector<char>> zigzag(n, vector<char>());
bool down = true;
int row = 0;
for (char c : s) {
zigzag[row].push_back(c);
if (down)
row++;
else
row--;
if (row == 0 || row == n - 1)
down = !down;
}
string password;
for (int i = 0; i < n; i++) {
for (char c : zigzag[i]) {
password += c;
}
}
return password;
}
int main() {
string s;
int n;
cin >> s >> n;
cout << findPassword(s, n) << endl;
return 0;
}
Flipkartโ
#include <vector>
using namespace std;
string findPassword(string s, int n) {
if (n == 1)
return s;
vector<vector<char>> zigzag(n, vector<char>());
bool down = true;
int row = 0;
for (char c : s) {
zigzag[row].push_back(c);
if (down)
row++;
else
row--;
if (row == 0 || row == n - 1)
down = !down;
}
string password;
for (int i = 0; i < n; i++) {
for (char c : zigzag[i]) {
password += c;
}
}
return password;
}
int main() {
string s;
int n;
cin >> s >> n;
cout << findPassword(s, n) << endl;
return 0;
}
Flipkartโ
๐1
#include<bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> arr(n);
for(int i = 0; i < n; i++) {
cin >> arr[i];
}
stack<int> s;
vector<int> nwe(n, -1);
for(int i = 0; i < n; i++) {
while(!s.empty() && arr[s.top()] > arr[i]) {
nwe[s.top()] = arr[i];
s.pop();
}
s.push(i);
}
for(int i = 0; i < n; i++) {
cout << nwe[i] << " ";
}
cout << endl;
return 0;
}
using namespace std;
int main() {
int n;
cin >> n;
vector<int> arr(n);
for(int i = 0; i < n; i++) {
cin >> arr[i];
}
stack<int> s;
vector<int> nwe(n, -1);
for(int i = 0; i < n; i++) {
while(!s.empty() && arr[s.top()] > arr[i]) {
nwe[s.top()] = arr[i];
s.pop();
}
s.push(i);
}
for(int i = 0; i < n; i++) {
cout << nwe[i] << " ";
}
cout << endl;
return 0;
}
Detecting perfect number โ
#include <iostream>
using namespace std;
int maxChocolateCakes(int A, int P) {
int totalPieces = A * 3 + P;
return totalPieces / 2;
}
int main() {
int A, P;
cin >> A >> P;
int maxCakes = maxChocolateCakes(A, P);
cout << maxCakes << endl;
return 0;
}
Chocoland โ
using namespace std;
int maxChocolateCakes(int A, int P) {
int totalPieces = A * 3 + P;
return totalPieces / 2;
}
int main() {
int A, P;
cin >> A >> P;
int maxCakes = maxChocolateCakes(A, P);
cout << maxCakes << endl;
return 0;
}
Chocoland โ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
#include <vector> #include <queue> using namespace std; int solve(vector<int> ropes) { priority_queue<int> pq(ropes.begin(), ropes.end()); int ans = 0; while (pq.size() > 1) { int rope1 = pq.top(); pq.pop(); int rope2 =โฆ
Rope pair length โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Wuri (YC W24) | Backend Developer | 2024, 2023 Grads | Expected Salary: 15-25 LPA
https://www.linkedin.com/jobs/view/3918914336
https://www.linkedin.com/jobs/view/3918914336
Linkedin
Wuri (YC W24) hiring Backend Developer in Bengaluru, Karnataka, India | LinkedIn
Posted 4:39:37 PM. About The RoleWe are looking for a highly skilled and highly driven Backend Developer to join ourโฆSee this and similar jobs on LinkedIn.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Vestas | Trainee Engineer | 2024, 2023 Grads
https://careers.vestas.com/job/Chennai-Trainee-Engineer-TN/1067391401/
https://careers.vestas.com/job/Chennai-Trainee-Engineer-TN/1067391401/
Vestas
Trainee Engineer
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Lennox | Graduate Engineering Trainee - IT | 2024, 2023 Grads
https://indiacareers-lennox.icims.com/jobs/43198/job
https://indiacareers-lennox.icims.com/jobs/43198/job
indiacareers
Graduate Engineering Trainee - IT in Chennai | Careers at Chennai
Lennox (NYSE: LII) is an industry leader in energy-efficient climate-control solutions founded over a century ago on the principles of integrity and innovation. Dedicated to sustainability and creating comfortable, healthier environments for our residentialโฆ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Omind is hiring Backend Engineer Intern
For 2025, 2024 grads
Check out this job at Omind: https://www.linkedin.com/jobs/view/3917296438
For 2025, 2024 grads
Check out this job at Omind: https://www.linkedin.com/jobs/view/3917296438
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Google Docs
ZS Associates Referral Form
ZS Associates is a management consulting and technology firm that provides services to clients in the healthcare, private equity, and technology sectors.
Job Roles:
Advanced Data Science Associate - Location Pune - [Job ID 19724]
Advanced Data Science Associateโฆ
Job Roles:
Advanced Data Science Associate - Location Pune - [Job ID 19724]
Advanced Data Science Associateโฆ
OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ
ZS is Hiring 2023/2024 are eligible https://forms.gle/6MwJtrJUyr7SDxaB7
While filling the form you can write NA in the masters list.
They are accepting BTech candidates as well.
They are accepting BTech candidates as well.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Sensehq
About Sense | The new way companies hire amazing talent
Here at Sense, we are a diverse, collaborative team committed to perfecting the way companies engage with talent.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐ Exciting Internship Opportunity with IBM SkillsBuild! ๐
We are thrilled to announce the IBM SkillsBuild Summer Internship Program for June 2024, offering students incredible opportunities to advance their skills in cutting-edge technology areas. Check out our programs:
Data Analytics Internship: June 3 - July 30th, 2024
Front End Web Development Internship: June 4 - July 31st, 2024
AI-ML Internship: June 10 - June 28, 2024
๐ Last Day to Register: May 20, 2024
https://forms.gle/RXExB7v86ZFyLpw66
We are thrilled to announce the IBM SkillsBuild Summer Internship Program for June 2024, offering students incredible opportunities to advance their skills in cutting-edge technology areas. Check out our programs:
Data Analytics Internship: June 3 - July 30th, 2024
Front End Web Development Internship: June 4 - July 31st, 2024
AI-ML Internship: June 10 - June 28, 2024
๐ Last Day to Register: May 20, 2024
https://forms.gle/RXExB7v86ZFyLpw66