๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.62K 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
๐Ÿ‘2
#include <bits/stdc++.h>
using namespace std;

#define ll long long
#define vll vector<long long>

void solve(vll adj[], ll n) {
    bool vis[n + 1];
    memset(vis, 0, sizeof vis);
    priority_queue<ll, vll, greater<ll>> Q;
    vis[1] = true;
    Q.push(1);
    while (!Q.empty()) {
        ll now = Q.top();
        Q.pop();
        cout << now << " ";
        for (auto p : adj[now]) {
            if (!vis[p]) {
                Q.push(p);
                vis[p] = true;
            }
        }
    }
}

int main() {
    ll n = 3, m = 2;
    vll adj[n + 1];
    vll a = {1, 1};
    vll b = {2, 3};
    for (ll i = 0; i < m; i++) {
        adj[a[i]].push_back(b[i]);
        adj[b[i]].push_back(a[i]);
    }
    solve(adj, n);
    return 0;
}

Forest traversal โœ…
int calculateTotalWeight(vector<int>& weights) {
    int totalWeight = 0;
    while (!weights.empty()) {
        auto minElementIter = min_element(weights.begin(), weights.end());
        totalWeight += *minElementIter;
        int index = distance(weights.begin(), minElementIter);
        int start = max(0, index - 1);
        int end = min(index + 1, static_cast<int>(weights.size()) - 1);
        weights.erase(weights.begin() + start, weights.begin() + end + 1);
    }
    return totalWeight;
}

IBM โœ…
Total Weight
We (Metastart) are urgently hiring immediate joiners!

โ€ข Full Stack JAVASCRIPT Developer
โ€ข Work Experience: 6-12 months.
โ€ข Skills: JavaScript, ReactJS, NodeJS, MongoDB

We are a remote company based out of Bengaluru. please share your resume at srishti.gupta@metastart.in.
โ—๏ธLinde Engineering Off Campus Drive 2023 for Trainee Engineers | Rs. 3.75 โ€“ 5.60 LPAโ—๏ธ

๐Ÿ‘จโ€๐Ÿ’ป Job Role : Trainee Engineers
๐ŸŽ“Qualification : B.E/B.Tech/M.E/M.Tech/Diploma
๐ŸŽ–Experience : Freshers
๐Ÿ’ฐSalary : Rs. 3.75 โ€“ 5.60 LPA

โญ•๏ธ Apply Fast : 

https://www.firstnaukri.com/careers/customised/landingpage/linde/index.html
๐ŸŽฏIGT Solutions Walk-in Drive 2023 for Process Associate | Any degree | 15 November 2023๐ŸŽฏ

๐Ÿ”ธJob Role : Process Associate
๐Ÿ”ธQualification : Any Degree/Any PG degree
๐Ÿ”ธExperience : Freshers
๐Ÿ”ธSalary : Rs. 15,000/-

WALKIN TIMINGS & VENUE -

Date/Day - 15-Nov-23 , Wednesday , 10:30am onwards

Please share your resume on sameer.gandhi@igtsolutions.com

Infotech Centre, 14/2 Old Delhi Gurgaon Road Dundahera, GURGAON, Haryana, India
PLEASE MENTION "Sameer Gandhi" ON TOP OF YOUR RESUME