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