๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.63K subscribers
5.59K photos
3 videos
95 files
10.2K 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
#include <bits/stdc++.h>
using namespace std;
int count(const unordered_set<int> &a, const unordered_set<int> &b) {
    int r = 0;
    for (int x : a) {
        r += b.count(x);
    }
    return r;
}

void better(int& r, int &num, int id, int count) {
    if (r < 0  or (num < count or   ((num == count) && (r > id)))) {
        r = id;
        num = count;
    }
}

vector<int> getRecommendedFriends(int n, const vector<vector<int>> friendships) {
     vector<int> r(n, -1), num(n, 0);
    vector<unordered_set<int>> con(n);
    for (const auto& v : friendships) {
        con[v[0]].insert(v[1]);
        con[v[1]].insert(v[0]);
    }
  

    for (int i = 0; i<n; ++i) {
        for (auto t1 = con[i].begin(); t1 != con[i].end(); ++t1) {
            for (auto t2 = next(t1); t2 != con[i].end(); ++t2) {
              
                if (con[*t1].count(*t2) == 0) {
                    const int x = count(con[*t1], con[*t2]);
                    better(r[*t1], num[*t1], *t2, x);
                    better(r[*t2], num[*t2], *t1, x);
                }
               
            }
        }
    }
    for (int i = 0; i < n; ++i) {
        if (r[i] < 0) {
            int j = 0;
            for (; j < n && (j == i) || con[i].count(j); ++j);
            if (j < n) {
                r[i] = j;
            }
        }
   
    }
    return r;
}

Social Media suggestions
BNY Mellon โœ…
class Solution {
public:
    vector<int> countServers(int n, vector<vector<int>>& logs, int x, vector<int>& queries) {
        sort(logs.begin(), logs.end(), [](const auto& a, const auto& b) {
            return a[1] < b[1];
        });
        int m = queries.size();
        vector<pair<int, int>> qs(m);
        for (int i = 0; i < m; ++i) {
            qs[i] = {queries[i], i};
        }
        sort(qs.begin(), qs.end());
        unordered_map<int, int> cnt;
        vector<int> ans(m);
        int j = 0, k = 0;
        for (auto& [r, i] : qs) {
            int l = r - x;
            while (k < logs.size() && logs[k][1] <= r) {
                ++cnt[logs[k++][0]];
            }
            while (j < logs.size() && logs[j][1] < l) {
                if (--cnt[logs[j][0]] == 0) {
                    cnt.erase(logs[j][0]);
                }
                ++j;
            }
            ans[i] = n - cnt.size();
        }
        return ans;
    }
};


BNY Mellon โœ…
LOG ANALYSIS 2
public static int findMaximumZeroes(int[] arr) {
        int n = arr.length;
        int ans = 1;
        int mini = arr[0];

        for (int i = 1; i < n; i++) {
            if (arr[i] <= mini) {
                ans++;
            }
            mini = Math.min(mini, arr[i]);
        }

        return ans;
    }

Amazon โœ…
๐Ÿ‘2โค1๐Ÿ‘Ž1
๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
Photo
#include <bits/stdc++.h>
using namespace std;
long long getMaxReliability(int maxConnections, int gnodes, vector<int> g_from, vector<int> g_to, vector<int> g_weight) {
    vector<vector<pair<int, int>>> adj(gnodes);

    for (int i = 0; i < gnodes - 1; ++i) {
        adj[g_from[i]].emplace_back(g_to[i], g_weight[i]);
        adj[g_to[i]].emplace_back(g_from[i], g_weight[i]);
    }

    function<array<long long, 2>(int, int)> dfs = [&](int cur, int parent) {
        array<long long, 2> ans{};
        vector<long long> take, skip, diff;

        for (auto& [next, w] : adj[cur]) {
            if (parent != next) {
                auto [not_full, full] = dfs(next, cur);
                take.push_back(not_full + w);
                skip.push_back(full);
                diff.push_back(take.back() - skip.back());
            }
        }

        int n = int(diff.size());
        nth_element(diff.begin(), diff.begin() + maxConnections - 1, diff.end(), greater<>());
        ans[0] = accumulate(diff.begin(), diff.begin() + min(maxConnections, n), 0LL) + accumulate(skip.begin(), skip.end(), 0LL);
        if (n && n >= maxConnections) {
            ans[1] = ans[0];
            ans[0] -= *min_element(diff.begin(), diff.begin() + maxConnections);
        }

        return ans;
    };
    auto ans = dfs(0, -1);
   // cout << "DFS Result - Not Full: " << ans[0] << ", Full: " << ans[1] << endl;
    return max(ans[0], ans[1]);
}


Get MaxReliability
Gamekraftโœ…
๐Ÿ‘1
#include <bits/stdc++.h>
using namespace std;

int solve(vector<int>& err, int p, int q) {
    make_heap(err.begin(), err.end());
    pop_heap(err.begin(), err.end());
    int base_line = 0;
    int operations = 0;
    while (err.back() > base_line) {
        base_line += q;
        int max_err = err.back();
        err.pop_back();
        err.push_back(max_err - (p - q));
        push_heap(err.begin(), err.end());
        operations += 1;
        pop_heap(err.begin(), err.end());
    }
    return operations;
}
def solution(A, B, N):
    dp = [[0] * N for _ in range(2)]
    dp[0][0] = A[0]
    dp[1][0] = max(A[0], B[0])
    for j in range(1, N):
        dp[0][j] = max(dp[0][j - 1], A[j])
        dp[1][j] = min(max(dp[0][j], B[j]), max(dp[1][j-1], B[j]))
    return dp[1][N-1]

Microsoft โœ…
Task 1
๐Ÿ‘1
class Solution {
public:
    int smallestRangeII(vector<int>& A, int K) {
        sort(A.begin(), A.end());
        int res = A[A.size() - 1] - A[0];
        int left = A[0] + K, right = A[A.size() - 1] - K;
        for (int i = 0; i < A.size() - 1; i++) {
            int maxi = max(A[i] + K, right), mini = min(left, A[i + 1] - K);
            res = min(res, maxi - mini);
        }
        return res;
    }
};
Company - ClaimBuddy
Role -Software Engineer Intern
Batch - 2023/2024/2025/2026
Stipend - โ‚น10,000 โ€“ โ‚น30,000 / month
Location - Gurugram
Send your Introduction, name, Email id, Phone No., Resume attached as PDF at khet@claimbuddy.in (mail id of the cofounder)
https://www.linkedin.com/posts/tanisha-sharma-62a06a172_hrinternship-bangalorejobs-rupeek-activity-7226943817780711424-3hFc?utm_source=share&utm_medium=member_desktop

๐Ÿš€ Join Us as an HR Intern at Rupeek Fintech!

Are you a recent graduate eager to start your career in Human Resources? We have an exciting opportunity for you!
๐Ÿ”น Position: HR Intern
๐Ÿ”น Location: Bangalore (Onsite)
๐Ÿ”น Stipend: โ‚น10,000 per month
๐Ÿ”น Duration: 3-6 months

Requirements:
- Fresh graduates with a degree in HR, Business Administration, or related fields.
- Strong communication skills and attention to detail.
- Proactive and eager to learn.

Apply Now:
Send your resume to Tanisha.sharma.cn@rupeek.com
Company โ€“ DeepThought Edutech Ventures Private Limited
Role โ€“ Data Analytics Internship
Exp. โ€“ Fresher
Apply Here โ€“ https://internshala.com/internship/details/data-analytics-internship-in-hyderabad-at-deepthought-edutech-ventures-private-limited1724564352?utm_source=cp_link&referral=web_share

Company โ€“ CodeInterns
Role โ€“ Data Science Intern
Exp. โ€“ Fresher
Apply Here โ€“ https://internshala.com/internship/detail/work-from-home-part-time-data-science-internship-at-codeinterns1724507862?utm_source=cp_link&referral=web_share

Company โ€“ American Express
Role โ€“ Analyst-Data Science
Exp. โ€“ 0-4 yrs
Apply Here โ€“ https://aexp.eightfold.ai/careers/job/23701696?domain=aexp.com&utm_medium=jobboard&utm_source=linkedin

Company โ€“ Turing
Role โ€“ Delivery Data Analyst
Exp. โ€“ Fresher
Apply Here โ€“ https://job-boards.greenhouse.io/turingportal/jobs/5272538004?gh_src=437470a24us&utm_medium=jobboard&utm_source=linkedin
We are at Adgama Digital Pvt Ltd (https://adgamadigital.com) hiring for interns

1. AI Intern [position: 2]
- Good understanding of DSA
- Familiarity with Q learning algorithm(Re-inforcement learning)
- Should have good documentation skills

2. PowerBI Developer Intern [position: 2]
- Good understanding of Time Intelligence
- DAX, M Query
- Data processing and Modelling, and Schema Modelling
- Should have good documentation skills

3. ML Developer Intern [position: 1]
- Good understanding of implementing SVM, XGB, Decision Tree-like algorithms (supervised learning)
- Must have implemented the concept of parameter tuning
- Data visualization and Preprocessing
- Should have good documentation skills

Interested candidates can share resume at anmol@adgamadigital.org
๐Ÿ‘1