๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
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
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
Hiring Interns for 6-Months Full-Time Internship at Freecharge

Locations: Gurugram

We are seeking a motivated Intern to join our Risk and Policy team. As an Intern, you will have the opportunity to gain hands-on experience in analyzing regulatory frameworks, assessing risks, and contributing to policy development initiatives within the fintech sector. This internship will provide valuable insights into how regulations impact financial technology companies and the strategic approaches taken to manage risk.

Pls email your cv- mansi.jaggi@freecharge.com
#include <bits/stdc++.h>
using namespace std;
int main() {
    int N;
    cin >> N;
    vector<int> e(N);
    unordered_map<int, int> f;
    unordered_map<int, int> aa;
    for (int i = 0; i < N; i++) {
        cin >> e[i];
        f[e[i]]++;
        if (aa.find(e[i]) == aa.end()) {
            aa[e[i]] = i; 
        }
    }
    stable_sort(e.begin(), e.end(), [&](int a, int b) {
        if (f[a] != f[b]) {
            return f[a] > f[b];
        }
        return aa[a] < aa[b];
    });
    for (int i = 0; i < N; i++) {
        cout << e[i] << " ";
    }
    cout << endl;
    return 0;
}


Barclays โœ…
๐Ÿ‘1
#include <bits/stdc++.h>
using namespace std;
#define int long long

int n;
unordered_map<string, int> memo;
bool isSorted(string &str) {
    for (int i = 1; i < str.length(); i++) {
        if (str[i] < str[i - 1]) {
            return false;
        }
    }
    return true;
}

int solve(string &s, string last, int count, int i) {
    if (i >= n) {
        if (isSorted(last)) {
            return count;
        } else {
            return INT_MAX;
        }
    }

    string key = last + "-" + to_string(i); 
    if (memo.find(key) != memo.end()) {
        return memo[key];
    }

    int include = solve(s, last + s[i], count, i + 1);

 
    int exclude = solve(s, last, count + 1, i + 1);

    return memo[key] = min(include, exclude);
}

int32_t main() {
    string s;
    cin >> s;

    n = s.length();
    int ans = solve(s, "", 0, 0);
    cout << (ans == INT_MAX ? -1 : ans) << endl;

    return 0;
}


Microsoft โœ…
#include <iostream>
#include <vector>
#include <algorithm>
#include <queue>
using namespace std;
vector<long> maximisingSweetness(vector<int> A, vector<int> B, vector<int> C) {
    int n = A.size();
    vector<pair<int, int>> sweets;
    for (int i = 0; i < n; ++i) {
        sweets.push_back({A[i], B[i]});
    }
    sort(sweets.begin(), sweets.end());

    sort(C.begin(), C.end());
    priority_queue<int> q;

    int i = 0;
    int cnt = 0;
    long total = 0;
    for (int c : C) {
        while (i < n && sweets[i].first <= c) {
            q.push(sweets[i].second);
            ++i;
        }
        if (!q.empty()) {
            ++cnt;
            total += q.top();
            q.pop();
        }
    }
    return {cnt, total};
}


Infoedge โœ…
๐Ÿ‘1
#include <bits/stdc++.h>
using namespace std;
bool isEnough(int mid, int N, int targetCount) {
    int count = 0;
    for (int i = 1; i <= N; ++i) {
        count += min(N, mid / i);
    }
    return count >= targetCount;
}

string solve(int N) {
    int totalElements = N * N;
    int targetCount = (totalElements + 1) / 2; 
    int low = 1, high = N * N;
   
    while (low < high) {
        int mid = (low + high) / 2;
        if (isEnough(mid, N, targetCount)) {
            high = mid;
        } else {
            low = mid + 1;
        }
    }
   
    return to_string(low);
}

int main() {
    int N;
    cin >> N;

    string median = solve(N);
    cout << median << endl;

    return 0;
}


Infoedge โœ…
#include <bits/stdc++.h>
using namespace std;
int solve(const vector<int>& nums, int factor) {
    int low = -1;
    int high = nums.size() - 1;
        while (low < high) {
        int mid = (low + high + 1) / 2;
        if (nums[mid] < factor) {
            low = mid; 
        } else {
            high = mid - 1;
        }
    }
    return (low == -1) ? 0 : nums[low]; 
}

int main() {
    int N, m;
    cin >> N >> m;
   
    vector<int> nums(m);
    for (int i = 0; i < m; ++i) {
        cin >> nums[i];
    }
   
    sort(nums.begin(), nums.end());
    int s = 0;
        for (int i = 1; i <= sqrt(N); ++i) {
        if (N % i == 0) {
            s += solve(nums, i);
            if (i != N / i) {
                s += solve(nums, N / i);
            }
        }
    }
   
    cout << s << endl;
   
    return 0;
}


FACTOR LOWER BOUNDโœ…
Infoedge
๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
Photo
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = sc.nextInt();
        int[][] tasks = new int[n][2];
        for (int i = 0; i < n; i++) {
            tasks[i][0] = sc.nextInt();
            tasks[i][1] = sc.nextInt();
        }
        t = sc.nextInt();
        int newTaskStart = sc.nextInt();
        int newTaskEnd = sc.nextInt();
        int k = sc.nextInt();
        System.out.println(isTaskPossible(tasks, n, newTaskStart, newTaskEnd, k) ? 1 : 0);
    }

    static boolean isTaskPossible(int[][] tasks, int n, int newTaskStart, int newTaskEnd, int k) {
        List<int[]> intervals = new ArrayList<>();
        for (int[] task : tasks) {
            intervals.add(new int[]{task[0], 1});
            intervals.add(new int[]{task[1], -1});
        }
        intervals.add(new int[]{newTaskStart, 1});
        intervals.add(new int[]{newTaskEnd, -1});

        intervals.sort((a, b) -> a[0] == b[0] ? Integer.compare(a[1], b[1]) : Integer.compare(a[0], b[0]));

        int count = 0;
        for (int[] interval : intervals) {
            count += interval[1];
            if (count > k) {
                return false;
            }
        }
        return true;
    }
}

Infoedge โœ…
#define ll long long

#include <bits/stdc++.h>
using namespace std;

bool isEnough(ll mid, ll N, ll targetCount) {
    ll count = 0;
    for (ll i = 1; i <= N; ++i) {
        count += min(N, mid / i);
    }
    return count >= targetCount;
}

string solve(ll N) {
    ll totalElements = N * N;
    ll targetCount = (totalElements + 1) / 2;
    ll low = 1, high = N * N;
    while (low < high) {
        ll mid = (low + high) / 2;
        if (isEnough(mid, N, targetCount)) {
            high = mid;
        } else {
            low = mid + 1;
        }
    }
    return to_string(low);
}

int main() {
    ll N;
    cin >> N;
    string median = solve(N);
    cout << median << endl;
    return 0;
}

Greek
Infoedge โœ…
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

int main() {
    int N, m;
    cin >> N >> m;
    vector<int> nums(m);
    for (int i = 0; i < m; i++) {
        cin >> nums[i];
    }

    sort(nums.begin(), nums.end());

    int sum = 0;
    for (int i = 1; i * i <= N; i++) {
        if (N % i == 0) {
            auto it1 = lower_bound(nums.begin(), nums.end(), i);
            if (it1 != nums.begin()) sum += *(--it1);
            if (i != N / i) {
                auto it2 = lower_bound(nums.begin(), nums.end(), N / i);
                if (it2 != nums.begin()) sum += *(--it2);
            }
        }
    }

    cout << sum << endl;
    return 0;
}


// Indian Geek โœ…
def specialBinaryTree(arr):
    from collections import Counter
    freq = Counter(arr)
    min_val, max_val = min(arr), max(arr)
    count = 0
   
    for root in range(min_val, max_val + 1):
        l, r = min_val, max_val
        while l <= r:
            s = l + r
            if s == 2 * root:
                count += freq[l] * freq[r] if l != r else freq[l] * (freq[l] - 1) // 2
                l += 1
                r -= 1
            elif s < 2 * root:
                l += 1
            else:
                r -= 1

    return count
Special binary treeโœ