๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.61K subscribers
5.6K photos
3 videos
95 files
10.4K links
๐ŸšฉMain Group - @SuperExams
๐Ÿ“Job Updates - @FresherEarth

๐Ÿ”ฐAuthentic Coding Solutions(with Outputs)
โš ๏ธDaily Job Updates
โš ๏ธHackathon Updates & Solutions

Buy ads: https://telega.io/c/cs_algo
Download Telegram
๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
Photo
from bisect import bisect_left, bisect_right

class Solution:
    def minTime(self, start, end, q_start, q_end, k):
        events = [(s, 1) for s in start] + [(e + 1, -1) for e in end]
        events.sort()

        intervals, cnt, prev = [], 0, None
        for t, typ in events:
            if prev is not None and cnt >= k:
                intervals.append((prev, t))
            cnt += typ
            prev = t

        starts = [s for s, _ in intervals]
        ends = [e for _, e in intervals]
        pre = [0] * len(ends)
        total = 0
        for i in range(len(intervals)):
            total += ends[i] - starts[i]
            pre[i] = total

        res = []
        for qs, qe in zip(q_start, q_end):
            l = bisect_left(ends, qs)
            r = bisect_right(starts, qe) - 1
            if l > r:
                res.append(0)
                continue

            overlap = pre[r] - (pre[l - 1] if l > 0 else 0)
            if starts[l] < qs:
                overlap -= qs - starts[l]
            if ends[r] > qe:
                overlap -= ends[r] - qe
            res.append(overlap)
       
        return res

Optymzr โœ…
๐Ÿš€ Exciting Opportunity at Games24x7! ๐Ÿš€

We are hiring for the role of Data Engineer (SDE-1) at our Bangalore location! If you have a passion for data and a strong background in Spark, Python, data pipelines, and real-time data streaming, MLOps we want to hear from you!

๐Ÿ—“๏ธ Scheduled Drive: October 24th & 25th
๐Ÿ“ Location: Bangalore
๐Ÿ” Interview Format: Two rounds of technical interviews (virtual) on the same day.

We're looking for candidates who can join us within a month and are eager to work with the latest data engineering tech stack.

If you're interested, please send your resume to tarun.kumavat@games24x7.com
๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
Photo
#include <iostream>
#include <vector>
#include <unordered_map>
#include <string>

using namespace std;

class HMap {
private:
    unordered_map<long long, long long> m;
    long long a;
    long long b;

public:
    HMap() : a(0), b(0) {}

    void insert(long long x, long long y) {
        m[x - a] = y - b;
    }

    long long get(long long x) {
        long long k = x - a;
        if (m.find(k) != m.end()) {
            return m[k] + b;
        }
        return 0;
    }

    void addToKey(long long x) {
        a += x;
    }

    void addToValue(long long y) {
        b += y;
    }
};

long long solution(vector<string> qType, vector<vector<int>> q) {
    HMap h;
    long long s = 0;

    for (size_t i = 0; i < qType.size(); i++) {
        if (qType[i] == "insert") {
            h.insert(q[i][0], q[i][1]);
        } else if (qType[i] == "get") {
            s += h.get(q[i][0]);
        } else if (qType[i] == "addToKey") {
            h.addToKey(q[i][0]);
        } else if (qType[i] == "addToValue") {
            h.addToValue(q[i][0]);
        }
    }

    return s;
}


Motive OA โœ…
๐Ÿ“ŒCaterpillar is hiring for Associate Software Engineer
Experience: 0 - 1 year's
Expected Salary: 6-12 LPA
Apply here:
https://careers.caterpillar.com/en/jobs/job/r0000276818-associate-software-engineer/?source=LinkedIn

๐Ÿ“ŒDecisions is hiring for Junior Cloud Ops Engineer
Experience: 0 - 1 year's
Expected Salary: 4-8 LPA
Apply here:
https://decisions.com/jobs-listing/?gh_jid=4546954007&gh_src=8f2d3fd87us

๐Ÿ“ŒTrueFan is hiring for DevOps Engineer with ML Ops
Experience: 0 - 1 year's
Expected Salary: 12-20 LPA
Apply here:
https://www.linkedin.com/jobs/view/4055350088/?alternateChannel=search

๐Ÿ“ŒAnakin (YC S21) is hiring for Software Engineer
Experience: 0 - 1 year's
Expected Salary: 5-12 LPA
Apply here:
https://www.linkedin.com/jobs/view/4054958888/?alternateChannel=search
๐Ÿ‘1
For all the opportunities, check the job description and see if you are eligible, you are fulfilling 50-60% of job description, update your resume with all the keywords and Apply!!

Best of luck guys ๐Ÿ˜‡โค๏ธ
๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
Photo
#include <bits/stdc++.h>
using namespace std;
int overlap(string a, string b) {
    int m = a.length(), n = b.length();
    int v = 0;
        for (int i = 1; i <= min(m, n); i++) {
        if (a.substr(m - i) == b.substr(0, i)) {
            v = i;
        }
    }
    return v;
}

int maxScore(int N, vector<string>& LIST, vector<int>& POINTS, int limit) {
    vector<int> dp(limit + 1, 0);
    for (int i = 0; i < N; i++) {
        int len = LIST[i].length();
        int points = POINTS[i];
        for (int j = len; j <= limit; j++) {
            dp[j] = max(dp[j], dp[j - len] + points);
        }
        for (int k = 0; k < N; k++) {
            if (i == k) continue;
            int ov = overlap(LIST[i], LIST[k]);
            int new_len = len + LIST[k].length() - ov;
            int new_points = points + POINTS[k];
            for (int j = new_len; j <= limit; j++) {
                dp[j] = max(dp[j], dp[j - new_len] + new_points);
            }
        }
    }
    return dp[limit];
}


Construct Best String โœ…
Stonewain
Looking for talented freshers who are willing to build their career as a Data Analyst / Data Engineer.

๐Ÿ“Mandatory Skills:
โœจSQL
โœจPython
โœจPoweBI
โœจTableau

๐Ÿ’Œ Interested candidates share your resume via email to beula.nadar@hansacequity.com

If useful show ๐Ÿ‘๐Ÿป
๐Ÿ‘1
#include <bits/stdc++.h>
using namespace std;
int minCostToCleanDataset(string dataset, int ox, int oy) {
    unordered_map<char, int> freq;
    for (char c : dataset) {
        freq[c]++;
    }
    int r = 0;
    int t = 0;
    for (auto &entry : freq) {
        int count = entry.second;
        t += (count / 2) * ox;
        if (count % 2 != 0) {
            r++;
        }
    }
    t += (r / 2) * oy;
    return t;
}


Amazon โœ…
vector<int> solve(int n, vector<vector<int>> m) {
    vector<int> t(n, 0);
    vector<int> w(n, 0);

    for(int i = 0; i < n; i++) {
        for(int j = 0; j < n; j++) {
            if(m[i][j] == 1) {
                t[i]++;
            }
        }
    }

    int maxi = *max_element(t.begin(), t.end());

    for(int i = 0; i < n; i++) {
        if(t[i] + count(m[i].begin(), m[i].end(), 2) >= maxi) {
            w[i] = 1;
        }
    }

    return w;
}

Stonewain โœ…
def ss(C):
    if len(C) < 10 or len(C) > 12:
        return C[-1]
    F = C[:3]
    if len(set(F)) != 3 or not all(c.isupper() for c in F):
        return C[-1]
    Y = C[3:7]
    if not Y.isdigit() or not (1900 <= int(Y) <= 2019):
        return C[-1]
    D = C[7:-1]
    v = {'10', '20', '50', '100', '200', '500', '1000'}
    if D not in v:
        return C[-1]
    l = C[-1]
    if not (l.isupper() and len(l) == 1):
        return C[-1]
    return C[0]


Practo โœ…
โค1๐Ÿ‘1