๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.52K subscribers
5.56K photos
3 videos
95 files
9.68K 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 <iostream>
#include <vector>
#include <algorithm>

using namespace std;

const int INF = 99;
const int MAXN = 20;
int dist[MAXN][MAXN];
int next_node[MAXN][MAXN];
int path_count[MAXN][MAXN][MAXN];

void solve(int n) {
    for (int i = 0; i < n; i++) {
        for (int j = 0; j < n; j++) {
            if (i != j && dist[i][j] != INF) {
                for (int k = 0; k < n; k++) {
                    if (dist[i][k] + dist[k][j] == dist[i][j]) {
                        path_count[i][j][k]++;
                    }
                }
            }
        }
    }

    vector<int> v;
    for (int k = 0; k < n; k++) {
        int count = 0;
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < n; j++) {
                if (i != j && i != k && j != k) {
                    count += path_count[i][j][k];
                }
            }
        }
        if (count > 0) {
            v.push_back(k);
        }
    }

    sort(v.begin(), v.end());
    for (int node : v) {
        cout << node << endl;
    }
}

int main() {
    int n;
    cin >> n >> n;
    for (int i = 0; i < n; i++) {
        for (int j = 0; j < n; j++) {
            cin >> dist[i][j];
            if (dist[i][j] == INF) {
                next_node[i][j] = -1;
            } else {
                next_node[i][j] = j;
            }
        }
    }

    for (int k = 0; k < n; k++) {
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < n; j++) {
                if (dist[i][k] + dist[k][j] < dist[i][j]) {
                    dist[i][j] = dist[i][k] + dist[k][j];
                    next_node[i][j] = next_node[i][k];
                }
            }
        }
    }

    solve(n);

    return 0;
}
int solve(int n, vector<int>& arr) {
    while (arr.size() > 1) {
        int len = INT_MAX;
        int idx = -1;
        for (int i = 0; i < arr.size() - 1; ++i) {
            int d = arr[i + 1];
            if (d == 0 || arr[i] == 0) {
                continue;
            }
            int r = min(arr[i] % d, d % arr[i]);
            if (r < len) {
                len = r;
                idx = i;
            }
        }
        if (idx == -1) {
            break;
        }
        int d = arr[idx + 1];
        if (d != 0) {
            arr[idx] = min(arr[idx] % d, d % arr[idx]);
        }
        arr.erase(arr.begin() + idx + 1);
    }
    return arr.size();
}

Women Day Mathematics Challenge โœ…
#include<bits/stdc++.h>
using namespace std;

int main() {
    int n;
    cin >> n;
    vector<int> a(n);
    for(int i=0; i<n; i++) {
        cin >> a[i];
    }
    sort(a.begin(), a.end());
    int ans = 0, count = 1;
    for(int i=1; i<n; i++) {
        if(a[i] > a[i-1]) {
            ans += count;
            count = 1;
        } else {
            count++;
        }
    }
    cout << ans << endl;
    return 0;
}
int findIdleServer(string s, int k) {
    int i = 0, n = s.length();
    for (int j = 0; j < n; ++j, ++i) {
        s[i] = s[j];
        if (i > 0 && s[i - 1] == s[i])
            i -= 2;
    }
    return s.substr(0, i);
Finoability is looking forward to collaborate with the Placement Cells of Under-graduate & Post-graduate colleges across the country to recruit for the Summer Internship Programme 2024 in the field of Finance & Marketing.

Interested colleges are requested to kindly get in touch with us at hr@finoability.com
๐ŸšจJOB OPENING UPDATE๐Ÿšจ

Company โ€“ Tree Top Staffing LLC
Role โ€“ Data Analyst
Exp. โ€“ Fresher
Apply Here โ€“ https://www.linkedin.com/jobs/view/3800053561

Company โ€“ MachineHack Generative AI
Role โ€“ Generative AI Engineer
Exp. โ€“ Fresher
Apply Here โ€“ https://www.linkedin.com/jobs/view/3801085938

Company โ€“ Hexaware Technologies
Role โ€“ Analytics Data science and IOT Engineer
Exp. โ€“ Fresher
Apply Here โ€“ https://www.linkedin.com/jobs/view/3800858321

Company โ€“ Altrata India Private Ltd
Role โ€“ Data Engineer
Exp. โ€“ 0-2 yr
Apply Here โ€“ https://www.naukri.com/job-listings-data-engineer-altrata-india-private-ltd-chennai-tamil-nadu-0-to-2-years-070124001912?src=sortby&sid=1704692157253739_1&xp=5&px=1&nignbevent_src=jobsearchDeskGNB

Company โ€“ SAZ India
Role โ€“ Data Analytics Intern
Exp. โ€“ Fresher
Apply Here โ€“ https://www.linkedin.com/jobs/view/3800760641

Company โ€“ Radio City
Role โ€“ Data Analytics intern
Exp. โ€“ Fresher
Apply Here โ€“ https://internshala.com/internship/detail/data-analytics-internship-in-mumbai-at-radio-city1704438545

Company โ€“ AIqwip
Role โ€“ Data Science intern
Exp. โ€“ Fresher
Apply Here โ€“ https://internshala.com/internship/detail/data-science-internship-in-bangalore-at-aiqwip1704547841

Company โ€“ Across The Globe (ATG)
Role โ€“ Deep Learning
Exp. โ€“ Fresher
Apply Here โ€“ https://internshala.com/internship/detail/deep-learning-work-from-home-job-internship-at-across-the-globe-atg1703825932

Company โ€“ Blackcoffer
Role โ€“ Data Science
Exp. โ€“ Fresher
Apply Here โ€“ https://internshala.com/internship/detail/data-science-work-from-home-job-internship-at-blackcoffer1704450041

ALL THE BEST๐Ÿ’™
SELECT
    YEAR(o.order_date) AS year,
    MONTH(o.order_date) AS month,
    SUM(oi.quantity * oi.price) AS total_revenue
FROM
    orders o
JOIN
    order_items oi ON o.order_id = oi.order_id
GROUP BY
    YEAR(o.order_date),
    MONTH(o.order_date)
ORDER BY
    YEAR(o.order_date),
    MONTH(o.order_date);

SQL โœ