class UserMainCode(object):
@classmethod
def solve(cls, input1, input2):
maxi = float('-inf')
total_sum = sum(input1)
for it in input1:
maxi = max(maxi, total_sum - it)
return maxi
frog in the pond โ
@classmethod
def solve(cls, input1, input2):
maxi = float('-inf')
total_sum = sum(input1)
for it in input1:
maxi = max(maxi, total_sum - it)
return maxi
frog in the pond โ
int maxLcmOfPairs(int arr[], int n){
int maxLCM = -1;
for (int i = 0; i < n; i++) {
for (int j = i + 1; j < n; j++) {
maxLCM = max(maxLCM, (arr[i] * arr[j]) / __gcd(arr[i], arr[j]));
}
}
return maxLCM;
}
Pair problem โ
int maxLCM = -1;
for (int i = 0; i < n; i++) {
for (int j = i + 1; j < n; j++) {
maxLCM = max(maxLCM, (arr[i] * arr[j]) / __gcd(arr[i], arr[j]));
}
}
return maxLCM;
}
Pair problem โ
class UserMainCode(object):
@classmethod
def reduceTheBill(cls, input1):
binary_input = bin(input1)[2:]
res = []
for i in range(len(binary_input)):
flipped_bit = '1' if binary_input[i] == '0' else '0'
flipped_binary = binary_input[:i] + flipped_bit + binary_input[i+1:]
res.append(int(flipped_binary, 2))
return min(res)
Reduce the Bill โ
@classmethod
def reduceTheBill(cls, input1):
binary_input = bin(input1)[2:]
res = []
for i in range(len(binary_input)):
flipped_bit = '1' if binary_input[i] == '0' else '0'
flipped_binary = binary_input[:i] + flipped_bit + binary_input[i+1:]
res.append(int(flipped_binary, 2))
return min(res)
Reduce the Bill โ
public static int countBountyNumbers(int N) {
int MOD = 10007;
long totalNDigitNumbers = 9 * (long) Math.pow(10, N - 1);
long noZeros = (long) Math.pow(9, N);
long oneZero = (N - 1) * 9 * (long) Math.pow(9, N - 2);
long validNumbers = (totalNDigitNumbers - noZeros - oneZero) % MOD;
if (validNumbers < 0) {
validNumbers += MOD;
}
return (int) validNumbers;
}
Bounty โ
int MOD = 10007;
long totalNDigitNumbers = 9 * (long) Math.pow(10, N - 1);
long noZeros = (long) Math.pow(9, N);
long oneZero = (N - 1) * 9 * (long) Math.pow(9, N - 2);
long validNumbers = (totalNDigitNumbers - noZeros - oneZero) % MOD;
if (validNumbers < 0) {
validNumbers += MOD;
}
return (int) validNumbers;
}
Bounty โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐BharatX is hiring for Frontend Developer
Experience: 0-2 years
Apply here:
https://apply.workable.com/bharatx/j/963F92526E/
Experience: 0-2 years
Apply here:
https://apply.workable.com/bharatx/j/963F92526E/
Workable
BharatX
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Catagrowth Technologies | 0-2 yrs | Intern and FTE opportunity | Golang / Reactjs/ NextJS/ Posture
Reach out - akshat@fealtyx.com
Intern stipend - 20k -30k with PPO opportunity
For full-time - 6-9 LPA CTC
Reach out - akshat@fealtyx.com
Intern stipend - 20k -30k with PPO opportunity
For full-time - 6-9 LPA CTC
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Amber is hiring Associate Software Engineer
For 2023, 2022 grads
Location - Pune
Check out this job at Amber: https://www.linkedin.com/jobs/view/3945238191
For 2023, 2022 grads
Location - Pune
Check out this job at Amber: https://www.linkedin.com/jobs/view/3945238191
Linkedin
Amber hiring Associate Software Engineer (React Native) in Pune, Maharashtra, India | LinkedIn
Posted 12:47:26 PM. About Amber (amberstudent.com)Long-term accommodation booking platform for students (thinkโฆ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)
Plivo is hiring SDET-1 (Full Time)
For 2023, 2022 grads
https://www.linkedin.com/posts/vipultiwari_plivo-2020531-software-development-engineer-activity-7205093765923921922-88Ny
For 2023, 2022 grads
https://www.linkedin.com/posts/vipultiwari_plivo-2020531-software-development-engineer-activity-7205093765923921922-88Ny
Linkedin
Vipul Tiwari on LinkedIn: Plivo - 2020531 - Software Development Engineer in Test -1 | 10 comments
Plivo is hiring !!! ๐ ๐ ๐
We're looking for talented QA to join our team as SDET-1 .
Please take a moment to review the job descriptions (JDs) and applyโฆ | 10 comments on LinkedIn
We're looking for talented QA to join our team as SDET-1 .
Please take a moment to review the job descriptions (JDs) and applyโฆ | 10 comments on LinkedIn
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐จJOB OPENING UPDATES๐จ
Company โ Frost & Sullivan
Role โ Intern - Data Science & AI Engineer
Exp. โ Fresher
Apply Here โ https://www.linkedin.com/jobs/view/3941301549
Company โ Cloud Elevate Technologies Pvt Ltd
Role โ Data Science Intern
Exp. โ Fresher
Apply Here โ https://internshala.com/internship/detail/work-from-home-part-time-data-science-internship-at-cloud-elevate-technologies-pvt-ltd1717729574?utm_source=cp_link&referral=web_share
Company โ ProAnalyst
Role โ Data Analyst Interns
Exp. โ Fresher
Apply Here โ https://www.linkedin.com/jobs/view/3940876535
Company โ Frost & Sullivan
Role โ Intern - Data Science & AI Engineer
Exp. โ Fresher
Apply Here โ https://www.linkedin.com/jobs/view/3941301549
Company โ Cloud Elevate Technologies Pvt Ltd
Role โ Data Science Intern
Exp. โ Fresher
Apply Here โ https://internshala.com/internship/detail/work-from-home-part-time-data-science-internship-at-cloud-elevate-technologies-pvt-ltd1717729574?utm_source=cp_link&referral=web_share
Company โ ProAnalyst
Role โ Data Analyst Interns
Exp. โ Fresher
Apply Here โ https://www.linkedin.com/jobs/view/3940876535
Linkedin
Frost & Sullivan hiring Intern - Data Science & AI Engineer in Chennai, Tamil Nadu, India | LinkedIn
Posted 7:24:19 AM. Intern - Data Science & AI Engineer - 6 Months - Paid Internship
About the Team
In Frost &โฆSee this and similar jobs on LinkedIn.
About the Team
In Frost &โฆ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)
Uni Cards is #hiring for Growth Analyst.
Location: Bangalore
Experience: 0-2 yrs
Job Description: https://www.iimjobs.com/j/uni-club-growth-analyst-0-2-yrs-1420423?
Location: Bangalore
Experience: 0-2 yrs
Job Description: https://www.iimjobs.com/j/uni-club-growth-analyst-0-2-yrs-1420423?
iimjobs.com
Uni Club - Growth Analyst | iimjobs.com
Job Description for Uni Club - Growth Analyst in UniCards in Bangalore for (0-2) years of experience. Apply Now!
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Onmobile Hiring for Software Engineer - 2023/24 - 10LPA - Bangalore
https://app.joinsuperset.com/students/jobprofiles/fac0cd2a-3c1e-4fa0-af1a-5583fc0391b8
https://app.joinsuperset.com/students/jobprofiles/fac0cd2a-3c1e-4fa0-af1a-5583fc0391b8
๐1
#include <iostream>
#include <vector>
using namespace std;
int andyTrucker(int N, int K, vector<int>& A) {
int maxWeight = 0;
for (int i = 0; i <= N - K; ++i) {
int currentWeight = 0;
for (int j = i; j < i + K; ++j) {
currentWeight += A[j];
}
maxWeight = max(maxWeight, currentWeight);
}
return maxWeight;
}
#include <vector>
using namespace std;
int andyTrucker(int N, int K, vector<int>& A) {
int maxWeight = 0;
for (int i = 0; i <= N - K; ++i) {
int currentWeight = 0;
for (int j = i; j < i + K; ++j) {
currentWeight += A[j];
}
maxWeight = max(maxWeight, currentWeight);
}
return maxWeight;
}
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
public static int solution(int N, int K, int[] cost, int[] sell) { int maxProfit = 0; List<Item> items = new ArrayList<>(); for (int i = 0; i < N; i++) { items.add(new Item(cost[i], sell[i])); } Collecโฆ
#include <vector>
#include <iostream>
using namespace std;
int maxProfit(int N, int K, vector<int>& cost, vector<int>& sell) {
int maxProfit = 0;
int currentMoney = K;
for (int i = 0; i < N; ++i) {
int profit = sell[i] - cost[i];
if (profit > 0) {
maxProfit += profit;
currentMoney += profit;
}
}
return maxProfit;
}
Profits โ
#include <iostream>
using namespace std;
int maxProfit(int N, int K, vector<int>& cost, vector<int>& sell) {
int maxProfit = 0;
int currentMoney = K;
for (int i = 0; i < N; ++i) {
int profit = sell[i] - cost[i];
if (profit > 0) {
maxProfit += profit;
currentMoney += profit;
}
}
return maxProfit;
}
Profits โ
#include <bits/stdc++.h>
using namespace std;
vector<int> distinctOrder(int g_nodes, vector<int> g_from, vector<int> g_to) {
vector<vector<int>> adj(g_nodes + 1);
for (int i = 0; i < g_from.size(); ++i)
{
adj[g_from[i]].push_back(g_to[i]);
adj[g_to[i]].push_back(g_from[i]);
}
for (int i = 1; i <= g_nodes; ++i)
{
sort(adj[i].rbegin(), adj[i].rend());
}
vector<int> A;
vector<bool> visited(g_nodes + 1, false);
priority_queue<int> pq;
pq.push(g_nodes);
while (!pq.empty())
{
int node = pq.top();
pq.pop();
if (visited[node]) continue;
visited[node] = true;
A.push_back(node);
for (int neighbor : adj[node])
{
if (!visited[neighbor])
{
pq.push(neighbor);
}
}
}
return A;
}
Distinct order Traversal โ
using namespace std;
vector<int> distinctOrder(int g_nodes, vector<int> g_from, vector<int> g_to) {
vector<vector<int>> adj(g_nodes + 1);
for (int i = 0; i < g_from.size(); ++i)
{
adj[g_from[i]].push_back(g_to[i]);
adj[g_to[i]].push_back(g_from[i]);
}
for (int i = 1; i <= g_nodes; ++i)
{
sort(adj[i].rbegin(), adj[i].rend());
}
vector<int> A;
vector<bool> visited(g_nodes + 1, false);
priority_queue<int> pq;
pq.push(g_nodes);
while (!pq.empty())
{
int node = pq.top();
pq.pop();
if (visited[node]) continue;
visited[node] = true;
A.push_back(node);
for (int neighbor : adj[node])
{
if (!visited[neighbor])
{
pq.push(neighbor);
}
}
}
return A;
}
Distinct order Traversal โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐NielsenIQ is hiring for Data Processing Analyst
Expected Salary: 4-6 LPA
Experience: 0-2 years
Apply here:
https://linkedin.com/jobs/view/3945297608/
Expected Salary: 4-6 LPA
Experience: 0-2 years
Apply here:
https://linkedin.com/jobs/view/3945297608/
Linkedin
NielsenIQ hiring Data Processing Analyst in Chennai, Tamil Nadu, India | LinkedIn
Posted 3:15:41 PM. Company DescriptionNielsenIQ is a global measurement and data analytics company that provides theโฆ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)
https://unstop.com/hackathons/novago-sde-hiring-challenge-unlock-your-future-with-a-hybrid-opportunity-novago-1024978?rstatus=1
Position: Software Development Engineer (SDE)
CTC: 8.5 LPA
Bond: None
Work Mode: Hybrid (combination of remote and in-office work)
Position: Software Development Engineer (SDE)
CTC: 8.5 LPA
Bond: None
Work Mode: Hybrid (combination of remote and in-office work)
Unstop
Novago SDE Hiring Challenge: Unlock Your Future with a Hybrid Opportunity! - 2024 | 1024978 // Unstop
Find out the best Novago SDE Hiring Challenge: Unlock Your Future with a Hybrid Opportunity! that match your interests. Prove your mettle and win exciting pr... | 2024 | 1024978
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Linkedin
Harshit Gupta on LinkedIn: #interested #referrals #hiring #hiringdevelopers #job #hiringjobsโฆ | 203 comments
(Update) ๐๐Referral Alert๐๐
Principal Global Services is hiring for Software Engineer Role for Pune and Hyderabad Location with Hybrid workplaceโฆ | 203 comments on LinkedIn
Principal Global Services is hiring for Software Engineer Role for Pune and Hyderabad Location with Hybrid workplaceโฆ | 203 comments on LinkedIn