๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.61K 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
#include <iostream>
#include <vector>
#include <climits>
using namespace std;

string countSignals(const vector<int>& frequencies, const vector<vector<int>>& filterRanges) {
    int ans = 0;

    int l = INT_MIN;
    int r = INT_MAX;
    for (const auto& filter : filterRanges) {
        l = max(l, filter[0]);
        r = min(r, filter[1]);
    }

    for (int frequency : frequencies) {
        if (l <= frequency && frequency <= r) {
            ans += 1;
        }
    }
    return to_string(ans);
}

Signal Filter โœ…
#include <iostream>
#include <vector>

using namespace std;

long long totalProduction(const string& numberEmbossed) {
    int n = numberEmbossed.length();
    vector<long long> dp(n + 1, 0);

    for (int i = 1; i <= n; ++i) {
        dp[i] = dp[i - 1] * 10 + (numberEmbossed[i - 1] - '0') * i;
    }

    long long totalSweets = 0;
    for (int i = 1; i <= n; ++i) {
        totalSweets += dp[i];
    }

    return totalSweets;
}

DE Shaw โœ…
freshershiring
*Management Trainees/ Internship*  #punejobs
-2 postions.  

*MBA / BBA/ similar.*

Area of exposure :- Business Administration,  Business Development
Marketing
Team /people Management,
Techno-Commercial,
Opportunity to work on business strategies.


*_Skills_*
- MS office with good knowledge of Excel and PowerPoint
Photoshop and similar skills added is advantage.
Good computer literacy

- Good communication skill
- Presentable, 
- Risktaker , Leadership qualities
- Good analytical skills
- Innovative and Logical thinking ability

Shall be Optimistic with realistic approach
- Result Oriented
- A team player
- Learning approach

Stipend upto 1.2 LPA 

*HO Location - Baner  Pune*

( _opportunity to work with top management and to work in multidomain,  diversified Functionalites_ )

Interested candidates please share your resume on

*hr@healthkattaa.com*
๐Ÿ‘1
#include<bits/stdc++.h>
using namespace std;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    int t;
    cin >> t;
    while(t--) {
        string s;
        cin >> s;
        int chairs = 0, maxi = 0;
        for(char c : s) {
            if(c == 'C' || c == 'U') {
                chairs++;
                maxi = max(maxi, chairs);
            } else if(c == 'R' || c == 'L') {
                chairs--;
            }
        }
        cout << maxi << "\n";
    }
    return 0;
}

Chairs Requirement โœ…
๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
Photo
#include <iostream>
#include <cmath>

struct Point {
    double x, y;
};

double area(Point p1, Point p2, Point p3) {
    return std::abs((p1.x * (p2.y - p3.y) + p2.x * (p3.y - p1.y) + p3.x * (p1.y - p2.y)) / 2.0);
}

bool isInside(Point a, Point b, Point c, Point p) {
    double A = area(a, b, c);
    double A1 = area(b, c, p);
    double A2 = area(a, c, p);
    double A3 = area(b, a, p);
    return A == A1 + A2 + A3;
}

int pointsBelong(int x1, int y1, int x2, int y2, int x3, int y3, int xp, int yp, int xq, int yq) {
    Point a = {static_cast<double>(x1), static_cast<double>(y1)};
    Point b = {static_cast<double>(x2), static_cast<double>(y2)};
    Point c = {static_cast<double>(x3), static_cast<double>(y3)};
    Point p = {static_cast<double>(xp), static_cast<double>(yp)};
    Point q = {static_cast<double>(xq), static_cast<double>(yq)};

    double ab = std::sqrt(std::pow(a.x - b.x, 2) + std::pow(a.y - b.y, 2));
    double bc = std::sqrt(std::pow(c.x - b.x, 2) + std::pow(c.y - b.y, 2));
    double ac = std::sqrt(std::pow(a.x - c.x, 2) + std::pow(a.y - c.y, 2));

    int output = 0;
    if (ab + bc > ac && bc + ac > ab && ab + ac > bc) {
        if (isInside(a, b, c, p) && isInside(a, b, c, q)) {
            output = 3;
        } else if (isInside(a, b, c, p)) {
            output = 1;
        } else if (isInside(a, b, c, q)) {
            output = 2;
        } else {
            output = 4;
        }
    }

    return output;
}

Do they Belong โœ…
๐Ÿ‘Ž2