Messho-AI-ques-ans.pdf
92.7 KB
Messho-AI-ques-ans.pdf
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
#include <bits/stdc++.h> #define ll long long #define pll pair<long long, long long> #define vll vector<long long> #define vc vector<char> #define vs vector<string> #define vvc vector<vector<char>> #define vvll vector<vector<long long>> #define vpll vector<pair<longโฆ
import java.util.Scanner;
public class test {
public String isPossible(int a, int b, int c, int d) {
if (a > c || b > d)
return "No";
if (a == c && b == d)
return "Yes";
String result1 = isPossible(a + b, b, c, d);
String result2 = isPossible(a, a + b, c, d);
if (result1.equals("Yes") || result2.equals("Yes"))
return "Yes";
return "No";
}
Is possible โ
public class test {
public String isPossible(int a, int b, int c, int d) {
if (a > c || b > d)
return "No";
if (a == c && b == d)
return "Yes";
String result1 = isPossible(a + b, b, c, d);
String result2 = isPossible(a, a + b, c, d);
if (result1.equals("Yes") || result2.equals("Yes"))
return "Yes";
return "No";
}
Is possible โ
Big Bang Theory โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Neoteric Analytics is offering a 3-month paid Web Development Internship!
https://forms.office.com/e/LqceTeCZEy
https://forms.office.com/e/LqceTeCZEy
Office
Please fill out this form
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
hiring for HR freshers for Gurugram Location
Join dynamic People & Culture team as 'Human resource Executive'
Experience - Fresher to 6 months
Location : Gurgaon
Interested? Apply now at deepa@7p-digital.com
Join dynamic People & Culture team as 'Human resource Executive'
Experience - Fresher to 6 months
Location : Gurgaon
Interested? Apply now at deepa@7p-digital.com
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
We welcome you for a MEGA WALK-IN drive on 16th January, 2024 on Tuesday
EXL is hiring for Accounts Executives: Accounts Receivables and Record to report.
Location: EXL, Inductis Pvt. Ltd., 4th Floor, Tower-C, Building-14, DLF Cyber City, Phase-3.
Timings: 11 AM to 2PM.
Please bring the hardcopy of your resume and mention "LinkedIn-Anisha Batra" on top of your resume
Essential Functions-
โข For AR: The incumbent will be part of AR team and shall be responsible for managing travel Account receivables process i.e. Cash receipting, Reconciliations, Month end activities, Travel accounting etc.
โข For R2R: The candidate must have the hands-on practice on several reconciliations like bank and balance sheet reconciliations, good command on journal entries
Qualifying criteria and Educational Requirements-
โข Only B.Com Graduates
โข Experience in specific domain: 0 to 2 Years
โข Good domain knowledge of accounting
โข US/UK shifts (flexible)
โข Excellent communication skills
โข M.S. Office skills
โข Salary grid 2.5 to 3.5 LPA with great incentives
โข Work from office role
โข Both side cabs
โข Job Location - ASF Insignia, Gwal Pahari, Gurgaon.
EXL is hiring for Accounts Executives: Accounts Receivables and Record to report.
Location: EXL, Inductis Pvt. Ltd., 4th Floor, Tower-C, Building-14, DLF Cyber City, Phase-3.
Timings: 11 AM to 2PM.
Please bring the hardcopy of your resume and mention "LinkedIn-Anisha Batra" on top of your resume
Essential Functions-
โข For AR: The incumbent will be part of AR team and shall be responsible for managing travel Account receivables process i.e. Cash receipting, Reconciliations, Month end activities, Travel accounting etc.
โข For R2R: The candidate must have the hands-on practice on several reconciliations like bank and balance sheet reconciliations, good command on journal entries
Qualifying criteria and Educational Requirements-
โข Only B.Com Graduates
โข Experience in specific domain: 0 to 2 Years
โข Good domain knowledge of accounting
โข US/UK shifts (flexible)
โข Excellent communication skills
โข M.S. Office skills
โข Salary grid 2.5 to 3.5 LPA with great incentives
โข Work from office role
โข Both side cabs
โข Job Location - ASF Insignia, Gwal Pahari, Gurgaon.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
โผ๏ธ GKN Aerospace is hiring
๐ Degree: Graduate/Post-graduation
๐ Link - careers.gknaerospace.com/job/Bangalore-Graduate-Technology/1015781201/
๐ Degree: Graduate/Post-graduation
๐ Link - careers.gknaerospace.com/job/Bangalore-Graduate-Technology/1015781201/
Siemens Hiring technical Intern
Batch: 2024, 2025, 2026 and 2027
Experience: Freshers
Salary : 40k per month
Application link : https://jobs.siemens-healthineers.com/careers/job/563156118123788?microsite=siemens-healthineers
Batch: 2024, 2025, 2026 and 2027
Experience: Freshers
Salary : 40k per month
Application link : https://jobs.siemens-healthineers.com/careers/job/563156118123788?microsite=siemens-healthineers
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Airblack is hiring for FullStack Development Interns (2023, 2024 and 2025 passouts can go for it, if you have relevant projects)
Location: Gurugram
Duration: 6 months
If interested, send your resume over dev@airblack.com
While sending resume ache se apne projects ko describe krna, based on that selection hona yaha pr.
Location: Gurugram
Duration: 6 months
If interested, send your resume over dev@airblack.com
While sending resume ache se apne projects ko describe krna, based on that selection hona yaha pr.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name : BharatPe
Role.: SDE /Backend
Batches : 2022/2021 passouts
Link:
https://docs.google.com/forms/d/e/1FAIpQLSftabvQWCkDfYXD8QnoSzNhwfZ0anUvvNuh_X6Ug66sK4ATqQ/viewform
Role.: SDE /Backend
Batches : 2022/2021 passouts
Link:
https://docs.google.com/forms/d/e/1FAIpQLSftabvQWCkDfYXD8QnoSzNhwfZ0anUvvNuh_X6Ug66sK4ATqQ/viewform
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define mod 1000000007
ll dp[1005][3];
int N, L, R;
ll solve(int pos, int sum) {
if (pos == N) return (sum == 0);
if (dp[pos][sum] != -1) return dp[pos][sum];
ll ans = 0;
for (int i = L; i <= R; i++) {
ans = (ans + solve(pos + 1, (sum + i) % 3)) % mod;
}
return dp[pos][sum] = ans;
}
int main() {
cin >> N >> L >> R;
memset(dp, -1, sizeof dp);
cout << solve(0, 0) << endl;
return 0;
}
Uber She ++โ
using namespace std;
#define ll long long
#define mod 1000000007
ll dp[1005][3];
int N, L, R;
ll solve(int pos, int sum) {
if (pos == N) return (sum == 0);
if (dp[pos][sum] != -1) return dp[pos][sum];
ll ans = 0;
for (int i = L; i <= R; i++) {
ans = (ans + solve(pos + 1, (sum + i) % 3)) % mod;
}
return dp[pos][sum] = ans;
}
int main() {
cin >> N >> L >> R;
memset(dp, -1, sizeof dp);
cout << solve(0, 0) << endl;
return 0;
}
Uber She ++โ
#include<bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
int N;
cin >> N;
vector<pair<int, int>> bombs(N);
for(int i = 0; i < N; i++)
cin >> bombs[i].first >> bombs[i].second;
sort(bombs.begin(), bombs.end(), [](const auto &a, const auto &b) {
return a.second < b.second;
});
ll time = 0;
for(int i = 0; i < N; i++) {
time += bombs[i].first;
if(time > bombs[i].second) {
cout << -1 << endl;
return 0;
}
}
cout << time << endl;
return 0;
}
Uber She ++โ
using namespace std;
#define ll long long
int main() {
int N;
cin >> N;
vector<pair<int, int>> bombs(N);
for(int i = 0; i < N; i++)
cin >> bombs[i].first >> bombs[i].second;
sort(bombs.begin(), bombs.end(), [](const auto &a, const auto &b) {
return a.second < b.second;
});
ll time = 0;
for(int i = 0; i < N; i++) {
time += bombs[i].first;
if(time > bombs[i].second) {
cout << -1 << endl;
return 0;
}
}
cout << time << endl;
return 0;
}
Uber She ++โ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
#include<bits/stdc++.h> using namespace std; #define ll long long #define mod 1000000007 ll dp[1005][3]; int N, L, R; ll solve(int pos, int sum) { if (pos == N) return (sum == 0); if (dp[pos][sum] != -1) return dp[pos][sum]; ll ans = 0; โฆ
JIM And PAMโ
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
#include<bits/stdc++.h> using namespace std; #define ll long long int main() { int N; cin >> N; vector<pair<int, int>> bombs(N); for(int i = 0; i < N; i++) cin >> bombs[i].first >> bombs[i].second; sort(bombs.begin(), bombs.end()โฆ
xavier and bomb โ
map<long long, long long> m;
long long solve(long long i, long long uc, long long n, long long x, long long y) {
long long k1 = i | (uc << 10);
if (m.find(k1) != m.end())
return m[k1];
if (i == n) {
long long j = uc;
while (uc > 0) {
long long k = uc % 10;
if (k != x && k != y)
return 0;
uc = uc / 10;
}
return 1;
}
long long ans = 0;
for (long long j = 0; j <= 9; j++) {
ans += solve(i + 1, uc + 1LL * j, n, x, y);
}
return m[k1] = ans;
}
long long solution(int x, int y, int n) {
long long ans = 0;
for (long long i = 1; i <= 9; i++) {
m.clear();
ans += solve(1, i, n, x, y);
}
return ans;
}
Distinct Digits โ
long long solve(long long i, long long uc, long long n, long long x, long long y) {
long long k1 = i | (uc << 10);
if (m.find(k1) != m.end())
return m[k1];
if (i == n) {
long long j = uc;
while (uc > 0) {
long long k = uc % 10;
if (k != x && k != y)
return 0;
uc = uc / 10;
}
return 1;
}
long long ans = 0;
for (long long j = 0; j <= 9; j++) {
ans += solve(i + 1, uc + 1LL * j, n, x, y);
}
return m[k1] = ans;
}
long long solution(int x, int y, int n) {
long long ans = 0;
for (long long i = 1; i <= 9; i++) {
m.clear();
ans += solve(1, i, n, x, y);
}
return ans;
}
Distinct Digits โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐RIMOT LLP is Hiring !!
Role: Junior Software Developer
Experience: 0-2 years
๐Apply here: https://www.linkedin.com/jobs/view/3801630138/
Role: Junior Software Developer
Experience: 0-2 years
๐Apply here: https://www.linkedin.com/jobs/view/3801630138/
Happy Pongal everyoneโจโก๏ธ๐ฅณ have a safe and joyful day ๐ช