๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ff first
#define ss second
int32_t main(){
ll n,m;
cin>>n>>m;
vector<ll> a(n);
vector<ll> b(m);
vector<ll> pre(n+1);
for(int i=0;i<n;i++){
cin>>a[i];
pre[i+1]=pre[i]+a[i];
}
for(int i=0;i<m;i++){
cin>>b[i];
}
ll k=(1LL<<m)-1;
ll dp[n+1][k+1];
for(int i=0;i<=n;i++){
for(int j=0;j<=k;j++){
dp[i][j]=0;
}
}
for(int i=1;i<=n;i++){
for(int j=0;j<=k;j++){
dp[i][j]=max(dp[i][j],dp[i-1][j]);
for(int l=0;l<m;l++){
if((1LL<<l)&j){
}
else{
ll next=(1LL<<l)|j,idx=i+b[l]-1;
if(idx>=0 and idx<=n)
dp[idx][next]=max(dp[idx][next],dp[i-1][j]+pre[idx]-pre[i-1]);
}
}
}
}
ll ans=0;
for(int i=0;i<=n;i++){
ans=max(dp[i][k],ans);
}
cout<<ans<<endl;
return 0;
}
Seat Bookingโ
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Swathi Prakash on LinkedIn: Google Forms: Sign-in | 69 comments
Dear Folks,
#Ninjacartishiring
Are you a data-driven professional with a passion for turning raw data into actionable insights? Do you thrive in aโฆ | 69 comments on LinkedIn
#Ninjacartishiring
Are you a data-driven professional with a passion for turning raw data into actionable insights? Do you thrive in aโฆ | 69 comments on LinkedIn
#include <bits/stdc++.h>
using ll = long long ;
using namespace std;
ll calculateResult(vector<ll>& arr, ll n, ll k) {
set<int> st;
ll ans = 0;
ll sum = 0;
sort(arr.begin(), arr.end(), greater<int>());
for (ll i = 0; i < n; i++) {
if (st.find(arr[i]) != st.end()) {
continue;
}
if (arr[i] - sum > 0) {
sum += k;
ans++;
st.insert(arr[i]);
}
}
return ans;
}
Go Daddy โ
๐2
#include <iostream>
#include <vector>
using namespace std;
vector<int> solve(const vector<int>& arr) {
int n = arr.size();
vector<int> result;
for (int i = 0; i < n - 2; i++) {
int a = arr[i];
int b = arr[i + 1];
int c = arr[i + 2];
if (a + b > c && a + c > b && b + c > a) {
result.push_back(1);
} else {
result.push_back(0);
}
}
return result;
}
Motive (SWE) โ
#include <bits/stdc++.h>
using ll = long long ;
using namespace std;
bool isPalindrome(int number) {
string str =to_string(number);
int left = 0, right = str.size() - 1;
while (left < right) {
if (str[left] != str[right]) {
return false;
}
left++;
right--;
}
return true;
}
vector<int> findPalindromicTransactions(vector<int>& transactions) {
std::vector<int> palindromicIDs;
for (int transaction : transactions) {
if (isPalindrome(transaction)) {
palindromicIDs.push_back(transaction);
}
}
sort(palindromicIDs.begin(), palindromicIDs.end(),greater<int>());
return palindromicIDs;
}
Databricks โ
๐ข1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Areva System on LinkedIn: #html #css #aws #nodejs #reactjs #sql #api #hiring | 10 comments
*JobID*: AS_FS_1001
*Role*: Full Stack Developer (Fresher, 1-2 Years Experience)
*Responsibilities*:
- Design, develop, and maintain responsive webโฆ | 10 comments on LinkedIn
*Role*: Full Stack Developer (Fresher, 1-2 Years Experience)
*Responsibilities*:
- Design, develop, and maintain responsive webโฆ | 10 comments on LinkedIn
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
using namespace std;
long maximize(int x_rows, int x_columns, vector<vector<int>>& x) {
vector<vector<long>> prefixSum(x_rows + 1, vector<long>(x_columns + 1, 0));
for (int i = 1; i <= x_rows; ++i) {
for (int j = 1; j <= x_columns; ++j) {
prefixSum[i][j] = x[i-1][j-1] +
prefixSum[i-1][j] +
prefixSum[i][j-1] -
prefixSum[i-1][j-1];
}
}
long maxF = 0;
for (int h = 1; h < x_rows; ++h) {
for (int v = 1; v < x_columns; ++v) {
long sumA = prefixSum[h][v];
long sumB = prefixSum[h][x_columns] - prefixSum[h][v];
long sumC = prefixSum[x_rows][v] - prefixSum[h][v];
long sumD = prefixSum[x_rows][x_columns] - prefixSum[h][x_columns] - prefixSum[x_rows][v] + prefixSum[h][v]; // Bottom-right
long fX = abs(sumA) + abs(sumB) + abs(sumC) + abs(sumD);
maxF = max(maxF, fX);
}
}
return maxF;
}
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Blinkit Analyst Intern
Looking for a talented individual to join as an Analyst Intern in the Central Ops strategy team at Blinkit in Gurgaon.
Key Skills:
- Proficiency in Basic SQL and Excel (including Dashboarding and VBA).
Strong problem-solving abilities and logical thinking.
- Final-year students or fresh graduates preferred, but open to others.
Additional information:
- Internship Duration: 3 months
- PPO based on performance
Join us ASAP (preferably within 7-15 days) by filling out the form below. Applications
open till 27th Oct'24.
https://docs.google.com/forms/d/e/1FAIpQLSe604ZBbM5HqQmuPo7vHT4guszf0TNsakzILpE3ZMHhOH6iTQ/viewform
Looking for a talented individual to join as an Analyst Intern in the Central Ops strategy team at Blinkit in Gurgaon.
Key Skills:
- Proficiency in Basic SQL and Excel (including Dashboarding and VBA).
Strong problem-solving abilities and logical thinking.
- Final-year students or fresh graduates preferred, but open to others.
Additional information:
- Internship Duration: 3 months
- PPO based on performance
Join us ASAP (preferably within 7-15 days) by filling out the form below. Applications
open till 27th Oct'24.
https://docs.google.com/forms/d/e/1FAIpQLSe604ZBbM5HqQmuPo7vHT4guszf0TNsakzILpE3ZMHhOH6iTQ/viewform
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Send your Resume to: hr@natit.in
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Whatsapp: +91 9500139200
Date: 26 October, 2024
Time: 4 PM - 7 PM
Date: 26 October, 2024
Time: 4 PM - 7 PM
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Wayfair
Role: Software Engineer Intern
Duration: 6 Month
Batch: 2025 passouts
Apply:
https://www.wayfair.com/careers/job/2025---software-engineering-intern-%286-month%29---bangalore-%28on-site%29/7699891002/apply?xhprof_profile=true
Role: Software Engineer Intern
Duration: 6 Month
Batch: 2025 passouts
Apply:
https://www.wayfair.com/careers/job/2025---software-engineering-intern-%286-month%29---bangalore-%28on-site%29/7699891002/apply?xhprof_profile=true
Wayfair
Wayfair Careers | Apply Now
WayfairCareersDescription
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Microsoft
Role: Software Engineer
Batch eligible: 2024 grads (2025 can try but chances are low)
Apply: https://jobs.careers.microsoft.com/us/en/job/1778013/Software-Engineering-Full-Time-Opportunity
Role: Software Engineer
Batch eligible: 2024 grads (2025 can try but chances are low)
Apply: https://jobs.careers.microsoft.com/us/en/job/1778013/Software-Engineering-Full-Time-Opportunity
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Ganesh Thik on LinkedIn: #inferyx #hiring | 11 comments
#Inferyx #Hiring
Automation Tester - Freshers
We are looking for talented freshers with a passion for automation testing to join our dynamic team! If you areโฆ | 11 comments on LinkedIn
Automation Tester - Freshers
We are looking for talented freshers with a passion for automation testing to join our dynamic team! If you areโฆ | 11 comments on LinkedIn
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
https://app.flexiple.com/job-description/10321?utm_source=linkedin_flexiple_jobpost
Package only 35LPA only
Freshers needed
Package only 35LPA only
Freshers needed
Flexiple
Build your dream tech team with Flexiple
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Outlier is hiring AI Engineer
For 2023, 2024 grads
Location: Delhi
https://docs.google.com/forms/d/e/1FAIpQLSc2cX4Mt9ASxg9cDg3FHbdWzvDwc9svunZQnneHN1dwcYqi9Q/viewform?usp=sf_link
For 2023, 2024 grads
Location: Delhi
https://docs.google.com/forms/d/e/1FAIpQLSc2cX4Mt9ASxg9cDg3FHbdWzvDwc9svunZQnneHN1dwcYqi9Q/viewform?usp=sf_link
def ss(firstnum: str, secondnum: str, thirdnum: str) -> bool:
target_sum = int(thirdnum)
second_value = int(secondnum)
if int(firstnum) + second_value == target_sum:
return True
for i in range(len(firstnum)):
new_firstnum = firstnum[:i] + firstnum[i+1:]
if new_firstnum and (new_firstnum[0] != '0'):
if int(new_firstnum) + second_value == target_sum:
return True
return False