#include <bits/stdc++.h>
using namespace std;
class Solution {
public:
string clearStars(string A) {
string s = A;
priority_queue<char, vector<char>, greater<char>> pq;
vector<vector<int>> ind(26);
unordered_set<int> rs;
for (int i = 0; i < s.size(); ++i) {
if (s[i] == '*') {
rs.insert(i);
char ch = pq.top(); pq.pop();
pq.push(ch);
rs.insert(ind[ch - 'a'].back());
ind[ch - 'a'].pop_back();
if (ind[ch - 'a'].empty()) pq.pop();
continue;
}
if (ind[s[i] - 'a'].empty())
pq.push(s[i]);
ind[s[i] - 'a'].push_back(i);
}
string res = "";
for (int i = 0; i < s.size(); ++i) {
if (!rs.count(i)) {
res += s[i];
}
}
return res;
}
};
Clear stars
Start removal
C++
using namespace std;
class Solution {
public:
string clearStars(string A) {
string s = A;
priority_queue<char, vector<char>, greater<char>> pq;
vector<vector<int>> ind(26);
unordered_set<int> rs;
for (int i = 0; i < s.size(); ++i) {
if (s[i] == '*') {
rs.insert(i);
char ch = pq.top(); pq.pop();
pq.push(ch);
rs.insert(ind[ch - 'a'].back());
ind[ch - 'a'].pop_back();
if (ind[ch - 'a'].empty()) pq.pop();
continue;
}
if (ind[s[i] - 'a'].empty())
pq.push(s[i]);
ind[s[i] - 'a'].push_back(i);
}
string res = "";
for (int i = 0; i < s.size(); ++i) {
if (!rs.count(i)) {
res += s[i];
}
}
return res;
}
};
Clear stars
Start removal
C++
Company : BrowserStack
Role: Software Engineer(Backend)
Experience: 0- 1Years
Location: Mumbai /Remote
Apply now: https://browserstack.wd3.myworkdayjobs.com/en-US/External/job/Software-Engineer--Backend--Mumbai_JR102378
Telegram:- @allcoding1_official
Role: Software Engineer(Backend)
Experience: 0- 1Years
Location: Mumbai /Remote
Apply now: https://browserstack.wd3.myworkdayjobs.com/en-US/External/job/Software-Engineer--Backend--Mumbai_JR102378
Telegram:- @allcoding1_official
S2: 4xy
S7: 6
S12: 0
Q4: 1/2
S22: (2, 3)
S28: Target/Mean Encoding
S29: TimeSeriesSplit
S38: 15
S43: 2/5
S59: Mode > Median > Mean
ML - 2: The data has a Gaussian distribution
ML - 7: Updating prior beliefs with observed data using Bayes' theorem
ML - 12: The probability distribution over actions given states
ML - 17: Internal covariate shift
ML - 23: Boosting reduces bias, bagging reduces variance
ML - 24: Binary Cross-Entropy
S48: 30/84
S60: 150
S53: 2/3
S68: Prior × Likelihood
Amazon Machine Learning Summer School:
Exam Date: 3rd August 2025
Exam Duration: 60 mins
10:30 AM
Test format:
Section 1 - MCQ section - 20 questions
Section 2 - DSA type coding section - 2 questions
Answers available 👇👇👇
Telegram channel:- @allcoding1_official
S7: 6
S12: 0
Q4: 1/2
S22: (2, 3)
S28: Target/Mean Encoding
S29: TimeSeriesSplit
S38: 15
S43: 2/5
S59: Mode > Median > Mean
ML - 2: The data has a Gaussian distribution
ML - 7: Updating prior beliefs with observed data using Bayes' theorem
ML - 12: The probability distribution over actions given states
ML - 17: Internal covariate shift
ML - 23: Boosting reduces bias, bagging reduces variance
ML - 24: Binary Cross-Entropy
S48: 30/84
S60: 150
S53: 2/3
S68: Prior × Likelihood
Amazon Machine Learning Summer School:
Exam Date: 3rd August 2025
Exam Duration: 60 mins
10:30 AM
Test format:
Section 1 - MCQ section - 20 questions
Section 2 - DSA type coding section - 2 questions
Answers available 👇👇👇
Telegram channel:- @allcoding1_official
M1: Encode sequential order
T1: Regularization
M16: Likelihood × Prior
ML2: SGD can escape local minima due to its noisy updates
ML3: Recursive Feature Elimination (RFE)
ML4: Gini Index
M4: It overfits the training data
M7: 0
M2: Strong negative linear relationship
S13: No real solution
S17: Local minimum
S23: Converges by Limit Comparison with 1/n²
S30: Collect recent user data and evaluate model drift
S31: Data leakage inflated model performance
S39: 6/216
Amazon ML School MCQ Answers 1:15 PM
T1: Regularization
M16: Likelihood × Prior
ML2: SGD can escape local minima due to its noisy updates
ML3: Recursive Feature Elimination (RFE)
ML4: Gini Index
M4: It overfits the training data
M7: 0
M2: Strong negative linear relationship
S13: No real solution
S17: Local minimum
S23: Converges by Limit Comparison with 1/n²
S30: Collect recent user data and evaluate model drift
S31: Data leakage inflated model performance
S39: 6/216
Amazon ML School MCQ Answers 1:15 PM
Kill the enemy
C++
Amazon 1.15 PM
#include <vector>
#include <algorithm>
int solve(std::vector<int> &A, int B) {
long long m1 = 0, m2 = 0;
for (int val : A) {
if (val > m1) {
m2 = m1;
m1 = val;
} else if (val > m2) {
m2 = val;
}
}
long long b = B;
long long s = m1 + m2;
if (s == 0) {
return b > 0 ? -1 : 0;
}
long long k = b / s;
int ans = k * 2;
long long rem = b % s;
if (rem == 0) {
return ans;
} else if (rem <= m1) {
return ans + 1;
} else {
return ans + 2;
}
}
C++
Amazon 1.15 PM
#include <vector>
#include <algorithm>
int solve(std::vector<int> &A, int B) {
long long m1 = 0, m2 = 0;
for (int val : A) {
if (val > m1) {
m2 = m1;
m1 = val;
} else if (val > m2) {
m2 = val;
}
}
long long b = B;
long long s = m1 + m2;
if (s == 0) {
return b > 0 ? -1 : 0;
}
long long k = b / s;
int ans = k * 2;
long long rem = b % s;
if (rem == 0) {
return ans;
} else if (rem <= m1) {
return ans + 1;
} else {
return ans + 2;
}
}
❤3
Cognizant is hiring IT analyst Trainee
Apply link
https://app.joinsuperset.com/join/#/signup/student/jobprofiles/d0dc8ef3-a27b-4cd7-9274-5b7d4638f8d1
Apply link
https://app.joinsuperset.com/join/#/signup/student/jobprofiles/d0dc8ef3-a27b-4cd7-9274-5b7d4638f8d1
❤4
. Siemens Healthineers
https://jobs.siemens-healthineers.com/careers/job/563156126453725?microsite=siemens-healthineers&hl=en&utm_source=linkedin&domain=siemens.com&sourceType=PREMIUM_POST_SITE&source=LinkedIn
2. Wells Fargo
https://www.wellsfargojobs.com/en/jobs/r-389220/intern-analyst/?jClickId=715b6125-a409-4ab1-8d52-ba139399ad02&publisher=Linkedin%20Flat%20bid&utm_source=joveo
3. BNP Paribas
https://group.bnpparibas/en/careers/job-offer/data-science-intern?SRC=LINKEDIN
https://jobs.siemens-healthineers.com/careers/job/563156126453725?microsite=siemens-healthineers&hl=en&utm_source=linkedin&domain=siemens.com&sourceType=PREMIUM_POST_SITE&source=LinkedIn
2. Wells Fargo
https://www.wellsfargojobs.com/en/jobs/r-389220/intern-analyst/?jClickId=715b6125-a409-4ab1-8d52-ba139399ad02&publisher=Linkedin%20Flat%20bid&utm_source=joveo
3. BNP Paribas
https://group.bnpparibas/en/careers/job-offer/data-science-intern?SRC=LINKEDIN
❤7
⏰ Last Day to Claim – Only 25 Seats Left!
🎓 Become a Certified Data Analyst for Just ₹399
Course by LearnTube | Backed by Google
🚀 Why Join?
✅ Recognized Certificate (Google, Amazon & More)
✅ 40+ Hours | 150+ Lessons
✅ No Experience Needed – Perfect for Beginners
✅ Real Projects: Predictive Analytics, Fraud Detection & More
📘 What You’ll Learn:
🔹 Data Visualization (Tableau, Power BI)
🔹 Machine Learning Basics
🔹 Big Data Tools (Hadoop, Spark)
🔹 Python, R, SQL, Excel
💥 Get Job-Ready + Lifetime Access
🎯 Enroll Now – Just ₹399!
🔥 Offer Ends Tonight!
📲 Tap Below to Join Now 👇
https://tinyurl.com/CompleteDataAnalyticsXCoACD
🎓 Become a Certified Data Analyst for Just ₹399
Course by LearnTube | Backed by Google
🚀 Why Join?
✅ Recognized Certificate (Google, Amazon & More)
✅ 40+ Hours | 150+ Lessons
✅ No Experience Needed – Perfect for Beginners
✅ Real Projects: Predictive Analytics, Fraud Detection & More
📘 What You’ll Learn:
🔹 Data Visualization (Tableau, Power BI)
🔹 Machine Learning Basics
🔹 Big Data Tools (Hadoop, Spark)
🔹 Python, R, SQL, Excel
💥 Get Job-Ready + Lifetime Access
🎯 Enroll Now – Just ₹399!
🔥 Offer Ends Tonight!
📲 Tap Below to Join Now 👇
https://tinyurl.com/CompleteDataAnalyticsXCoACD
❤6
Forwarded from allcoding1_official
⏰ Last Day to Claim – Only 25 Seats Left!
🎓 Become a Certified Data Analyst for Just ₹399
Course by LearnTube | Backed by Google
🚀 Why Join?
✅ Recognized Certificate (Google, Amazon & More)
✅ 40+ Hours | 150+ Lessons
✅ No Experience Needed – Perfect for Beginners
✅ Real Projects: Predictive Analytics, Fraud Detection & More
📘 What You’ll Learn:
🔹 Data Visualization (Tableau, Power BI)
🔹 Machine Learning Basics
🔹 Big Data Tools (Hadoop, Spark)
🔹 Python, R, SQL, Excel
💥 Get Job-Ready + Lifetime Access
🎯 Enroll Now – Just ₹399!
🔥 Offer Ends Tonight!
📲 Tap Below to Join Now 👇
https://tinyurl.com/CompleteDataAnalyticsXCoACD
🎓 Become a Certified Data Analyst for Just ₹399
Course by LearnTube | Backed by Google
🚀 Why Join?
✅ Recognized Certificate (Google, Amazon & More)
✅ 40+ Hours | 150+ Lessons
✅ No Experience Needed – Perfect for Beginners
✅ Real Projects: Predictive Analytics, Fraud Detection & More
📘 What You’ll Learn:
🔹 Data Visualization (Tableau, Power BI)
🔹 Machine Learning Basics
🔹 Big Data Tools (Hadoop, Spark)
🔹 Python, R, SQL, Excel
💥 Get Job-Ready + Lifetime Access
🎯 Enroll Now – Just ₹399!
🔥 Offer Ends Tonight!
📲 Tap Below to Join Now 👇
https://tinyurl.com/CompleteDataAnalyticsXCoACD