def solve(n, m, arr):
mod = 10**9 + 7
fact = [1] * (n + 1)
for i in range(2, n + 1):
fact[i] = fact[i - 1] * i % mod
arr.sort()
if n == 1:
return 1
val = arr.pop()
arr[-1] += val
def mod_inverse(a, mod):
return pow(a, mod - 2, mod)
ans = fact[n]
temp = 1
for count in arr:
temp = (temp * fact[count]) % mod
temp = mod_inverse(temp, mod)
return (ans * temp) % mod
minimum arrangements // Oyo
#include <iostream>
#include <vector>
#include <algorithm>
const int MOD = 1e9 + 7;
using namespace std;
long long solve(const vector<int>& a, int b) {
int c = a.size();
long long d = 0;
for (int i = 0; i < c; i++) {
d += a[i];
}
vector<long long> e(b + 1, 0);
e[0] = 1;
for (int i = 0; i < c; i++) {
for (int j = b; j >= a[i]; j--) {
e[j] = (e[j] + e[j - a[i]]) % MOD;
}
}
long long f = 1;
for (int i = 0; i < c; i++) {
f = (f * 2) % MOD;
}
long long g = 0;
for (int i = 0; i <= b; i++) {
g = (g + e[i]) % MOD;
}
long long h = (f - 2 * g + MOD) % MOD;
return h;
}
Sum of the elements // OYO
Meesho SDE-1
https://www.meesho.io/jobs/software-development-engineer---i---backend?id=3c7edd38-6c40-4fd5-9d86-61b92cd4dc8f
Refferal form
https://docs.google.com/forms/d/e/1FAIpQLScESUZ3QSePda-W4tpRQh3jYgI5l5LqvdzscXosghfVTOgvNA/viewform
https://www.meesho.io/jobs/software-development-engineer---i---backend?id=3c7edd38-6c40-4fd5-9d86-61b92cd4dc8f
Refferal form
https://docs.google.com/forms/d/e/1FAIpQLScESUZ3QSePda-W4tpRQh3jYgI5l5LqvdzscXosghfVTOgvNA/viewform
Do apply everyone
www.meesho.io
Meesho Careers: undefined
Your chance to reimagine commerce for bharat
Company Name: Optum
Role: Software Engineer
Batch eligible: 2023 and 2024 grads
Apply: https://careers.unitedhealthgroup.com/job/21243748/software-engineer-hyderabad-in
Role: Software Engineer
Batch eligible: 2023 and 2024 grads
Apply: https://careers.unitedhealthgroup.com/job/21243748/software-engineer-hyderabad-in
IBM
Both Coding📱
Test accomplished📣
DM for any placement help
-@mrtrueliving_ix
-@mrtrueliving_ix
-@mrtrueliving_ix
All placement help available
#IBM #coding #Done
Both Coding
Test accomplished
DM for any placement help
-@mrtrueliving_ix
-@mrtrueliving_ix
-@mrtrueliving_ix
All placement help available
#IBM #coding #Done
Please open Telegram to view this post
VIEW IN TELEGRAM
❤1
Swiggy BACKEND ASDE ✅
Test accomplished ✅
Coding+ SQL + all MCQs▶️
All placement help available
OA HELP: @mrtrueliving_ix💯
#Swiggy #BE #ASDE #ALL-DONE ☺️
Test accomplished ✅
Coding+ SQL + all MCQs
All placement help available
OA HELP: @mrtrueliving_ix💯
#Swiggy #BE #ASDE #ALL-DONE ☺️
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Netcore ⭐
Both codes are done📱
Mission accomplished📱
All placement help available
@mrtrueliving_ix
https://assessment.hackerearth.com/challenges/new/hiring/netcore-backend-developer-hiring-challenge-november-2024-round-1/
Apply and Contact For Help
@mrtrueliving_ix
@mrtrueliving_ix
Both codes are done
Mission accomplished
All placement help available
@mrtrueliving_ix
▪️ Company Name: NetcoreApply Línk
▪️ Role : Backend Developer
▪️0-5 years experience
▪️ Any Graduates | Any Batch
https://assessment.hackerearth.com/challenges/new/hiring/netcore-backend-developer-hiring-challenge-november-2024-round-1/
Direct test
Apply and Contact For Help
@mrtrueliving_ix
@mrtrueliving_ix
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
All OA help available
☄️ swiggy { FE//BE}
☄️ Net core
☄️ Amazon
☄️ MAQ
☄️ Throughtworks (tomorrow end)
☄️ Ibm
☄️ Asian paints {igniTe}
☄️ Accenture ON campus
☄️ Oracle
☄️ Infosys
☄️ Cognizant aptitude & Technical
🟨 All placement help available🟨
🟫 Remote access { 💯} Success rate { 💯}🟫
All OA help { ON campus or Off campus}
DM -@mrtrueliving_ix☄️
DM -@mrtrueliving_ix☄️
All OA help { ON campus or Off campus}
DM -@mrtrueliving_ix
DM -@mrtrueliving_ix
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Netcore👍
Both codes are done📱
💯 Plag free📱
Mission accomplished👑
OA HELP
@MRTRUELIVING_IX
@MRTRUELIVING_IX
💯 TEST CLEARANCE💙
#NetCore #SD #Coding #round 1
Both codes are done
💯 Plag free
Mission accomplished
OA HELP
@MRTRUELIVING_IX
@MRTRUELIVING_IX
💯 TEST CLEARANCE
#NetCore #SD #Coding #round 1
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Successfully cleared ❤️▶️ 📱
Prev
https://t.me/code_alphix/3747?single
#Amazon #SDET #Done
💯 Test Clearance📱
Prev
https://t.me/code_alphix/3747?single
#Amazon #SDET #Done
💯 Test Clearance
Please open Telegram to view this post
VIEW IN TELEGRAM