string shift(string s) {
string minStr = s;
for(int i=0; i<s.size(); i++) {
s = s.substr(1) + s[0];
if(s < minStr) {
minStr = s;
}
}
return minStr;
}
int solve(vector<int> a) {
map<string, int> m;
for(int i=0; i<a.size(); i++) {
string s = to_string(a[i]);
string minStr = shift(s);
m[minStr]++;
}
int count = 0;
for(auto it=m.begin(); it!=m.end(); it++) {
int n = it->second;
count += (n*(n-1))/2;
}
return count;
}
Autodesk โ
string minStr = s;
for(int i=0; i<s.size(); i++) {
s = s.substr(1) + s[0];
if(s < minStr) {
minStr = s;
}
}
return minStr;
}
int solve(vector<int> a) {
map<string, int> m;
for(int i=0; i<a.size(); i++) {
string s = to_string(a[i]);
string minStr = shift(s);
m[minStr]++;
}
int count = 0;
for(auto it=m.begin(); it!=m.end(); it++) {
int n = it->second;
count += (n*(n-1))/2;
}
return count;
}
Autodesk โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company: Hexagon
Role: Applications Engineer Intern
Expected CTC: 22K (Est)
Batch Eligible: 2022-2024
Website: https://myhr-hexagonmi.my.salesforce-sites.com/recruit/fRecruit__ApplyJob?vacancyNo=VN4383
Role: Applications Engineer Intern
Expected CTC: 22K (Est)
Batch Eligible: 2022-2024
Website: https://myhr-hexagonmi.my.salesforce-sites.com/recruit/fRecruit__ApplyJob?vacancyNo=VN4383
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company: GlobalLogic
Role: Trainee Software Engineer/ Software Engineer
Expected CTC: 8.3 - 12 LPA
Batch Eligible: 2023
Website: https://docs.google.com/forms/d/e/1FAIpQLSdCi5VF6nb-eWvp6aHNhRFZKF232-EyvyaFIl9XHvd0AmSdBg/viewform
Role: Trainee Software Engineer/ Software Engineer
Expected CTC: 8.3 - 12 LPA
Batch Eligible: 2023
Website: https://docs.google.com/forms/d/e/1FAIpQLSdCi5VF6nb-eWvp6aHNhRFZKF232-EyvyaFIl9XHvd0AmSdBg/viewform
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
ServiceNow Women Code to Win 2024 - India by ServiceNow! // Unstop (formerly Dare2Compete)
https://unstop.com/competitions/servicenow-women-code-to-win-2024-india-servicenow-838054
https://unstop.com/competitions/servicenow-women-code-to-win-2024-india-servicenow-838054
Unstop
ServiceNow Women Code to Win 2024 - India - 2023 | 838054 // Unstop
Find out the best ServiceNow Women Code to Win 2024 - India that match your interests. Prove your mettle and win exciting prizes like job opportunities and c... | 2023 | 838054
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company: Sportskeeda
Role: Social Media Intern - WFH
Expected CTC: 3 - 8 LPA
Batch Eligible: Any
Website: https://sportskeeda.zohorecruit.in/jobs/Careers/59509000015968895/Social-Media-Intern-US-Sports
Role: Social Media Intern - WFH
Expected CTC: 3 - 8 LPA
Batch Eligible: Any
Website: https://sportskeeda.zohorecruit.in/jobs/Careers/59509000015968895/Social-Media-Intern-US-Sports
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company: Amazon
Role: Associate Quality Services
Expected CTC: 3.5 to 5.5 LPA
Batch Eligible: Any
Website: https://amazonvirtualhiring.hirepro.in/registration/incta/ju0f4/apply/?j=56434&e=12271
Role: Associate Quality Services
Expected CTC: 3.5 to 5.5 LPA
Batch Eligible: Any
Website: https://amazonvirtualhiring.hirepro.in/registration/incta/ju0f4/apply/?j=56434&e=12271
vector<string> solve(vector<string> s, vector<string> a) {
vector<string> r;
for (auto& song : s) {
string sn;
int sl;
istringstream ss(song);
getline(ss, sn, ':');
ss >> sl;
for (auto& anim : a) {
string an;
int al;
istringstream as(anim);
getline(as, an, '/');
as >> al;
if (sl % al == 0) {
r.push_back(an + ":" + to_string(sl / al));
break;
}
}
}
return r;
}
Tradedesk โ
vector<string> r;
for (auto& song : s) {
string sn;
int sl;
istringstream ss(song);
getline(ss, sn, ':');
ss >> sl;
for (auto& anim : a) {
string an;
int al;
istringstream as(anim);
getline(as, an, '/');
as >> al;
if (sl % al == 0) {
r.push_back(an + ":" + to_string(sl / al));
break;
}
}
}
return r;
}
Tradedesk โ
import java.util.*;
public class Main {
public int solution(int[] A, int X, int Y) {
if (A == null || A.length < 1) return 0;
Arrays.sort(A);
int r = Integer.MAX_VALUE;
for (int i = 0, j = 0, left = 0, right = 0;;) {
for (; j < A.length - i && (left + A[j]) <= right; left += A[j++])
;
r = Math.min(r, X * Math.max(A.length - j - i, 0) + Y * i);
if (++i > A.length) break;
right += A[A.length - i];
}
return r;
}
Tradedesk โ
public class Main {
public int solution(int[] A, int X, int Y) {
if (A == null || A.length < 1) return 0;
Arrays.sort(A);
int r = Integer.MAX_VALUE;
for (int i = 0, j = 0, left = 0, right = 0;;) {
for (; j < A.length - i && (left + A[j]) <= right; left += A[j++])
;
r = Math.min(r, X * Math.max(A.length - j - i, 0) + Y * i);
if (++i > A.length) break;
right += A[A.length - i];
}
return r;
}
Tradedesk โ
Axis Bank Coding Round Done โ
void solve(vector<ll> a,ll l ,ll r){
set<pair<ll,ll>>s;
map<ll,ll>m;
ll i=0;
ll ans=INT_MAX;
for(auto x:a){
if(x<l || x>r){
i++;
continue;
}
else{
if(m.find(x)==m.end()){
m[x]=i;
s.insert({i,x});
}
else{
s.erase({m[x],x});
s.insert({i,x});
m[x]=i;
}
}
//cout<<i<<" "<<m.size()<<endl;
if(m.size()==r-l+1){
auto it=s.begin();
ans=min(ans,i-(*s.begin()).first+1);
}
i++;
}
cout<<(ans==INT_MAX?-1:ans)<<endl;
}
Tradedesk โ
set<pair<ll,ll>>s;
map<ll,ll>m;
ll i=0;
ll ans=INT_MAX;
for(auto x:a){
if(x<l || x>r){
i++;
continue;
}
else{
if(m.find(x)==m.end()){
m[x]=i;
s.insert({i,x});
}
else{
s.erase({m[x],x});
s.insert({i,x});
m[x]=i;
}
}
//cout<<i<<" "<<m.size()<<endl;
if(m.size()==r-l+1){
auto it=s.begin();
ans=min(ans,i-(*s.begin()).first+1);
}
i++;
}
cout<<(ans==INT_MAX?-1:ans)<<endl;
}
Tradedesk โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Llyod Hiring fresher !
Role - Data Analyst
Exp CTC - 10 lpa
Key Skills - Python, SQL, Java, Scala or Go
Link - https://amslbg.avature.net/careers/JobDetail/Hyderabad-Telangana-India-Data-Analyst/4345
Role - Data Analyst
Exp CTC - 10 lpa
Key Skills - Python, SQL, Java, Scala or Go
Link - https://amslbg.avature.net/careers/JobDetail/Hyderabad-Telangana-India-Data-Analyst/4345
Lloyds Technology Centre
LTC - Careers Portal
๐๐ฆ ๐๐น๐ด๐ผ ๐ป ๐ ใ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ดใ
Photo
def getMaximumLength(lotteryID, winnerID, k):
m, n = len(lotteryID), len(winnerID)
dp = [[[0] * n for _ in range(m)] for _ in range(k + 1)]
for o in range(k + 1):
for i in range(m):
for j in range(n):
c1, c2 = lotteryID[i], winnerID[j]
abs_diff = abs(ord(c1) - ord(c2))
diff = (26 - abs_diff if abs_diff > 13 else abs_diff)
if o > 0:
dp[o][i][j] = max(dp[o][i][j], dp[o - 1][i][j])
if i > 0:
dp[o][i][j] = max(dp[o][i][j], dp[o][i - 1][j])
if j > 0:
dp[o][i][j] = max(dp[o][i][j], dp[o][i][j - 1])
if o - diff >= 0:
if i > 0 and j > 0:
dp[o][i][j] = max(dp[o][i][j], dp[o - diff][i - 1][j - 1] + 1)
else:
dp[o][i][j] = 1 # if i or j==0 and it is possible to use a move then string can only match 1 char
return dp[k][m - 1][n - 1]
Source : Winner โ
m, n = len(lotteryID), len(winnerID)
dp = [[[0] * n for _ in range(m)] for _ in range(k + 1)]
for o in range(k + 1):
for i in range(m):
for j in range(n):
c1, c2 = lotteryID[i], winnerID[j]
abs_diff = abs(ord(c1) - ord(c2))
diff = (26 - abs_diff if abs_diff > 13 else abs_diff)
if o > 0:
dp[o][i][j] = max(dp[o][i][j], dp[o - 1][i][j])
if i > 0:
dp[o][i][j] = max(dp[o][i][j], dp[o][i - 1][j])
if j > 0:
dp[o][i][j] = max(dp[o][i][j], dp[o][i][j - 1])
if o - diff >= 0:
if i > 0 and j > 0:
dp[o][i][j] = max(dp[o][i][j], dp[o - diff][i - 1][j - 1] + 1)
else:
dp[o][i][j] = 1 # if i or j==0 and it is possible to use a move then string can only match 1 char
return dp[k][m - 1][n - 1]
Source : Winner โ
vector<int> getNetProfit(vector<string> e) {
unordered_map<string, int> p;
unordered_map<string, int> q;
vector<int> r;
int b = 0;
for (const auto& v : e) {
istringstream i(v);
string a, s;
int x;
i >> a >> s >> x;
if (a == "BUY") {
b -= p[s] * x;
q[s] += x;
} else if (a == "SELL") {
b += p[s] * x;
q[s] -= x;
} else if (a == "CHANGE") {
b += q[s] * x;
p[s] += x;
} else if (a == "QUERY") {
r.push_back(b);
}
}
return r;
}
Source : Hola โ
unordered_map<string, int> p;
unordered_map<string, int> q;
vector<int> r;
int b = 0;
for (const auto& v : e) {
istringstream i(v);
string a, s;
int x;
i >> a >> s >> x;
if (a == "BUY") {
b -= p[s] * x;
q[s] += x;
} else if (a == "SELL") {
b += p[s] * x;
q[s] -= x;
} else if (a == "CHANGE") {
b += q[s] * x;
p[s] += x;
} else if (a == "QUERY") {
r.push_back(b);
}
}
return r;
}
Source : Hola โ
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Cashfree Payments
Role: Technical Solution Engineer -1
Eligibility: those who are good in communication and proficient in Java, SQL having atleast 6 months of internship experience.
Apply: https://docs.google.com/forms/d/e/1FAIpQLScfV88cFtnZZDwP7SepjHdUqrfBPDqvjf906XUYH4nj6jSD8g/viewform
Role: Technical Solution Engineer -1
Eligibility: those who are good in communication and proficient in Java, SQL having atleast 6 months of internship experience.
Apply: https://docs.google.com/forms/d/e/1FAIpQLScfV88cFtnZZDwP7SepjHdUqrfBPDqvjf906XUYH4nj6jSD8g/viewform
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Airbus
Role: Data Analyst Intern
Batch eligible: 2024 and 2025 grads
Apply: https://ag.wd3.myworkdayjobs.com/en-US/Airbus/job/Bangalore-Area/Intern_JR10240511
Role: Data Analyst Intern
Batch eligible: 2024 and 2025 grads
Apply: https://ag.wd3.myworkdayjobs.com/en-US/Airbus/job/Bangalore-Area/Intern_JR10240511
Forwarded from OffCampus Jobs | OnCampus Jobs | Daily Jobs Updates | Lastest Jobs | All Jobs | CSE Jobs | Fresher Jobs โฅ (Dushyant)
Company Name: Zennode Technologies
Role: Junior Software Engineer
Batch eligible: 2022 and 2023 grads
Apply: https://www.zennode.com/jobs/junior-software-developer/
Role: Junior Software Engineer
Batch eligible: 2022 and 2023 grads
Apply: https://www.zennode.com/jobs/junior-software-developer/
Zennode Technologies
Junior Software Developer - Zennode Technologies
As a Junior Software Developer at Zennode Technologies, you will work closely with our development...