#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;
vector<string> solve(int N, const vector<vector<string>>& input) {
vector<pair<int, char>> in;
for (const auto& vec : input) {
int number = stoi(vec[0]);
char symbol = vec[1][0];
in.emplace_back(number, symbol);
}
sort(in.begin(), in.end());
string msgs;
int s = -1;
vector<string> result;
for (const auto& p : in) {
msgs += p.second;
}
for (size_t i = 0; i < msgs.size(); i++) {
if (msgs[i] == '*') {
if (s != -1) {
string msg = msgs.substr(s + 1, i - s - 1);
string out;
char last = '\0';
for (char c : msg) {
if (c != last) {
out += c;
last = c;
}
}
if (!out.empty()) {
result.push_back(out);
}
}
s = i;
}
}
return result;
}
Message Parsingโ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Instahyre is hiring for Full - Stack Developer (SDE - 1) - Remote
Experience: 0 - 1 years
Expected Salary: 10-20 LPA
Apply here: https://www.instahyre.com/job-19-full-stack-developer-sde-1-at-instahyre-work-from-home/
Experience: 0 - 1 years
Expected Salary: 10-20 LPA
Apply here: https://www.instahyre.com/job-19-full-stack-developer-sde-1-at-instahyre-work-from-home/
Instahyre
Full - Stack Developer (SDE - 1) job at Instahyre - Instahyre
Instahyre is looking for a Full - Stack Developer (SDE - 1) in Noida with 0-1 years of experience in Full-Stack Development, Django, Golang, TypeScript, etc. Apply today and get your dream job at Instahyre!
#include <bits/stdc++.h>
using namespace std;
#define int long long
int solution(int A, int B) {
if (A > B) {
return A - B;
}
int mini = INT_MAX;
int count = 0;
for (int i = A; i <= B; i++) {
int mod = B % i;
int ans = count;
if (mod)
ans += (i - mod);
mini = min(mini, ans);
count++;
}
return mini;
} m
ultiple โ
class node{
public:
long ind;
char c;
int t;
node()
{
}
node(long ind,char c,int t)
{
this->ind=ind;
this->c=c;
this->t=t;
}
};
bool cmp(node &a,node &b)
{
if(a.ind<b.ind)return true;
else return false;
}
vector<string>fun(int n,vector<vector<string>>messages)
{
vector<node>v(n);
for(int i=0;i<n;i++)
{
long ind=stol(messages[i][0]);
char c=messages[i][1][0];
int t=i;
node temp(ind,c,t);
v[i]=temp;
}
sort(v.begin(),v.end(),cmp);
vector<pair<int,string>>check;
vector<string>ans;
for(int i=0;i<n;i++)
{
if(v[i].c=='*')
{
int j=i+1;
while(j<n&&v[j].c!='*'&&v[j-1].ind+1==v[j].ind)j++;
if(v[j].c=='*')
{
int mx=0;
string temp="";
for(int k=i+1;k<j;k++)temp.push_back(v[k].c);
for(int k=i;k<=j;k++)mx=max(mx,v[k].t);
check.push_back({mx,temp});
}
}
}
sort(check.begin(),check.end());
for(int i=0;i<check.size();i++)ans.push_back(check[i].second);
return ans;
}
String Parse โ
public:
long ind;
char c;
int t;
node()
{
}
node(long ind,char c,int t)
{
this->ind=ind;
this->c=c;
this->t=t;
}
};
bool cmp(node &a,node &b)
{
if(a.ind<b.ind)return true;
else return false;
}
vector<string>fun(int n,vector<vector<string>>messages)
{
vector<node>v(n);
for(int i=0;i<n;i++)
{
long ind=stol(messages[i][0]);
char c=messages[i][1][0];
int t=i;
node temp(ind,c,t);
v[i]=temp;
}
sort(v.begin(),v.end(),cmp);
vector<pair<int,string>>check;
vector<string>ans;
for(int i=0;i<n;i++)
{
if(v[i].c=='*')
{
int j=i+1;
while(j<n&&v[j].c!='*'&&v[j-1].ind+1==v[j].ind)j++;
if(v[j].c=='*')
{
int mx=0;
string temp="";
for(int k=i+1;k<j;k++)temp.push_back(v[k].c);
for(int k=i;k<=j;k++)mx=max(mx,v[k].t);
check.push_back({mx,temp});
}
}
}
sort(check.begin(),check.end());
for(int i=0;i<check.size();i++)ans.push_back(check[i].second);
return ans;
}
String Parse โ
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Urgently required Freshers for Foxconn๐ฅ๐ฅ๐ฅ๐ฅ๐ฅ
Qualification: BCom, BA, BSc, Diploma, BE, BTech
Trade- EEE/ ECE/ EIE/ Mechanical/ Mechatronics
Year of Passing: 2022- 2023
Male & Female eligible.
Date of Interview: 6th September.
Venue: Impact College of Engineering and Applied Sciences.
Fill the form here: https://forms.gle/Jyy3Lnm3JwxtCAVy6
Hurry Up !!!!
Qualification: BCom, BA, BSc, Diploma, BE, BTech
Trade- EEE/ ECE/ EIE/ Mechanical/ Mechatronics
Year of Passing: 2022- 2023
Male & Female eligible.
Date of Interview: 6th September.
Venue: Impact College of Engineering and Applied Sciences.
Fill the form here: https://forms.gle/Jyy3Lnm3JwxtCAVy6
Hurry Up !!!!
Google Docs
Job Applications Registration- Foxconn -KA 06-September-2024
Job opportunity for different position in Foxconn, Bangalore location.
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Wingify is hiring for Internship - Web Development (Remote)
Experience: 0 - 1 year's
Expected Salary: 3 LPA
Apply here: https://wingify.keka.com/careers/jobdetails/57668
Experience: 0 - 1 year's
Expected Salary: 3 LPA
Apply here: https://wingify.keka.com/careers/jobdetails/57668
Keka
Intern - Website Development
Intern (Website Team)Are you passionate about web development and eager to gain hands-on experience in a dynamic environment? We are currently seeking a motivated intern to join our website development team. Responsibilities:Assist in the development andโฆ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Hello Everyone
Open position at Forgeahead
Python Developer - Fresher (Python, SQL)
Send your resume
tanmay.kashettiwar@forgeahead.io
Open position at Forgeahead
Python Developer - Fresher (Python, SQL)
Send your resume
tanmay.kashettiwar@forgeahead.io
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Fleetx is hiring for Frontend Developer role
Fresh grads can apply
Send resume to : yesha.verma@fleetx.io
Fresh grads can apply
Send resume to : yesha.verma@fleetx.io
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Send your Resume at: ajavutech@gmail.com
WhatsApp: 9093333888
WhatsApp: 9093333888
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Email: hr@briskminds.com
๐1
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Send your Updated Resume at: abhishek.gupta@chauwk.com
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Send your Resume: yesha.verma@fleetx.io
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐ฏWalk-IN Drive at AMAR UJALA
Role: Data Science Traniee
Stipend: 20k
Location: Amar Ujala Limited C-21, Sector-59, Noida
๐ปApply: https://docs.google.com/forms/d/e/1FAIpQLSf0tSZA-nsosDJ-ZIx8326iD1FkvHcpmheZ48Cj6LLx1Ga2vA/viewform
Role: Data Science Traniee
Stipend: 20k
Location: Amar Ujala Limited C-21, Sector-59, Noida
๐ปApply: https://docs.google.com/forms/d/e/1FAIpQLSf0tSZA-nsosDJ-ZIx8326iD1FkvHcpmheZ48Cj6LLx1Ga2vA/viewform
Google Docs
Walk In Drive: Data Science Trainee @amarujala.com II 10th Sep, 2024 (11AM - 2PM) Noida
Walk-in Drive for Fresh Graduates at Amar Ujala Ltd.
Location: Amar Ujala Limited C-21, Sector-59, Noida
Position: Trainee (6-Month Contract)
Stipend: โน20,000 per month
Details:
Role: 6-month trainee with potential for full-time placement
Eligibility: Recentโฆ
Location: Amar Ujala Limited C-21, Sector-59, Noida
Position: Trainee (6-Month Contract)
Stipend: โน20,000 per month
Details:
Role: 6-month trainee with potential for full-time placement
Eligibility: Recentโฆ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
๐Lepide is Hiring QA Freshers
Location: Noida! ๐
Are you a talented QA looking to take your career to the next level?
If youโre passionate about QA and ready to make an impact
Send your resume to
nisha.rajput@lepide.com
ayushi.sharma@lepide.com
Location: Noida! ๐
Are you a talented QA looking to take your career to the next level?
If youโre passionate about QA and ready to make an impact
Send your resume to
nisha.rajput@lepide.com
ayushi.sharma@lepide.com
def getBitDistances(n):
binary = bin(n)[2:]
return max(len(binary) - 1 - i for i, bit in enumerate(binary) if bit == '1')
def getTopKBitDistances(numbers, k):
bit_distances = [(num, getBitDistances(num)) for num in numbers]
sorted_numbers = sorted(bit_distances, key=lambda x: (-x[1], -x[0]))
return [num for num, _ in sorted_numbers[:k]]
IBMโ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Intern Hiring
15-20K Stipend
15-20K Stipend
For 2026 Batch who want Referral in Google send me resume
class Solution {
public int solution(int[][] peanuts, int[][] carrots) {
int N = peanuts.length;
int M = peanuts[0].length;
int[][] dp = new int[N][M];
dp[0][0] = peanuts[0][0] - carrots[0][0];
for (int j = 1; j < M; j++) {
dp[0][j] = dp[0][j - 1] + peanuts[0][j] - carrots[0][j];
}
for (int i = 1; i < N; i++) {
dp[i][0] = dp[i - 1][0] + peanuts[i][0] - carrots[i][0];
}
for (int i = 1; i < N; i++) {
for (int j = 1; j < M; j++) {
dp[i][j] = Math.max(dp[i - 1][j], dp[i][j - 1]) + peanuts[i][j] - carrots[i][j];
}
}
return dp[N - 1][M - 1];
}
Atlan fellowship โ
public int solution(int[][] peanuts, int[][] carrots) {
int N = peanuts.length;
int M = peanuts[0].length;
int[][] dp = new int[N][M];
dp[0][0] = peanuts[0][0] - carrots[0][0];
for (int j = 1; j < M; j++) {
dp[0][j] = dp[0][j - 1] + peanuts[0][j] - carrots[0][j];
}
for (int i = 1; i < N; i++) {
dp[i][0] = dp[i - 1][0] + peanuts[i][0] - carrots[i][0];
}
for (int i = 1; i < N; i++) {
for (int j = 1; j < M; j++) {
dp[i][j] = Math.max(dp[i - 1][j], dp[i][j - 1]) + peanuts[i][j] - carrots[i][j];
}
}
return dp[N - 1][M - 1];
}
Atlan fellowship โ
๐1