๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.52K subscribers
5.56K photos
3 videos
95 files
9.7K 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
BlackBerry hiring Interns for multiple roles in Bengaluru.
๐ŸŽ“ Interested students (especially 2023 & 2024 graduates) please apply through this link ๐Ÿ‘‰ https://lnkd.in/g2gk59Wm

- Paid internship
- Duration: 6-9 months
- Roles:
*Cloud backend engineer
*Associate cloud engineer
*Software development engineer in Test (SDET)
int dayofweek(int d, int m, int y)
{
    
static int t[] = { 0, 3, 2, 5, 0, 3,

                       5, 1, 4, 6, 2, 4 };

    y -= m < 3;

    
return ( y + y / 4 - y / 100 +

             y / 400 + t[m - 1] + d) % 7;
}


Prime Day of week โœ…
๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
Photo
#include <iostream>
#include <vector>
using namespace std;

struct T {
    int v;
    T* l;
    T* r;

    T(int val) : v(val), l(nullptr), r(nullptr) {}
};

class B {
public:
    T* r;

    B() : r(nullptr) {}

    void i(int val) {
        r = iR(r, val);
    }

    T* iR(T* r, int val) {
        if (r == nullptr) {
            r = new T(val);
            return r;
        }

        if (val < r->v) {
            r->l = iR(r->l, val);
        } else if (val > r->v) {
            r->r = iR(r->r, val);
        }

        return r;
    }
};

class BM {
public:
    T* m(T* n) {
        if (n == nullptr) {
            return n;
        }

        T* l = m(n->l);
        T* ri = m(n->r);

        n->l = ri;
        n->r = l;

        return n;
    }
};

class BT {
public:
    void p(T* n) {
        if (n == nullptr) {
            return;
        }
        cout << n->v << " ";
        p(n->l);
        p(n->r);
    }
};

int main() {
    int n;
    cin >> n;
    vector<int> v(n);
    for (int i = 0; i < n; ++i) {
        cin >> v[i];
    }

    B t;
    for (int val : v) {
        t.i(val);
    }

    BM m;
    T* mr = m.m(t.r);
    BT tr;
    tr.p(mr);

    return 0;
}


// mirror tree c++
#include <iostream>
#include <vector>
using namespace std;

int main() {
    int n;
    cin >> n;
    long sum = 0;

    for (int i = 0; i < n; ++i) {
        int x;
        cin >> x;
        sum += x;
        cout << sum - i << endl;
    }

    return 0;
}

//waiting time me try this
void dfs(int node, int parent, const vector<vector<pair<int, int>>>& graph,
         const vector<int>& minActivity, vector<long long>& activity, vector<bool>& vulnerable) {
    activity[node] = 0; // initial activity is 0
    for (const auto& edge : graph[node]) {
        int next_node = edge.first;
        int weight = edge.second;
       
        if (next_node != parent) {
            dfs(next_node, node, graph, minActivity, activity, vulnerable);
            activity[node] += activity[next_node] + weight;
        }
    }
    if (activity[node] > minActivity[node]) {
        vulnerable[node] = true;
    }
}

int getMinServers(int server_nodes, int server_edges, const vector<int>& server_from,
                  const vector<int>& server_to, const vector<int>& server_weight,
                  int minActivity_count, const vector<int>& minActivity) {
    vector<vector<pair<int, int>>> graph(server_nodes + 1);
    for (int i = 0; i < server_edges; ++i) {
        graph[server_from[i]].emplace_back(server_to[i], server_weight[i]);
        graph[server_to[i]].emplace_back(server_from[i], -server_weight[i]);
    }

    vector<long long> activity(server_nodes + 1, 0);
    vector<bool> vulnerable(server_nodes + 1, false);

    dfs(1, -1, graph, minActivity, activity, vulnerable);
    int vulnerableCount = count(vulnerable.begin(), vulnerable.end(), true);
    return vulnerableCount;
}

Cisco โœ…
hiring for freshers!!

Position- Intern Talent Acquisition
Duration: 6 months
Location-Gurgoan
Mode: Work from office
Immediate joiners are preferred
Any graduation or post graduation preferred (Any degree)
Desired:
1.Outstanding verbal and written communication skills.
2. Passionate about recruitment.
3. Good understanding of full cycle of recruitment.
4. Good analytical skills.
5.Good organization skills.
if interested mail your cv to sahil.a@zelusindia.com