allcoding1_official
107K subscribers
765 photos
2 videos
70 files
754 links
Download Telegram
allcoding1_official pinned ยซAmazon Machine Learning Summer School: Exam Date: 3rd August 2025 Exam Duration: 60 mins Test format: Section 1 - MCQ section - 20 questions Section 2 - DSA type coding section - 2 questions Answers available ๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡ Telegram channel:- @allcoding1_officialยป
A) B
โค1
Data drift
4/9
Recall
X=2
โค1
3/8
K-1
โค1
12.25
Positive
Binary encoding
F1 score
โค2
High - dimensional data
High training error and high test error
This media is not supported in your browser
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
#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++