๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
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
int maximumFinal(vector<int> arr) {
    sort(arr.begin(), arr.end());

    int n = arr.size();
    int result = 1;

    for (int i = 1; i < n; i++) {
        if (arr[i] - arr[i - 1] > 1) {
            arr[i] = arr[i - 1] + 1;
        }
        result = arr[i];
    }

    return result;
}

Amazon โœ…
Maximum Final
int maxSubjectsNumber(vector<int> answered, vector<int> needed, int q) {
    vector<pair<int, int>> subjects;
    for (int i = 0; i < answered.size(); i++) {
        subjects.push_back(make_pair(answered[i], needed[i]));
    }
    sort(subjects.begin(), subjects.end(), [](const pair<int, int>& a, const pair<int, int>& b) {
        return (a.second - a.first) < (b.second - b.first);
    });

    int subjectsPassed = 0;
    for (const auto& subject : subjects) {
        int answered = subject.first;
        int needed = subject.second;

        if (answered >= needed) {
            subjectsPassed++;
        } else if (q >= (needed - answered)) {
            subjectsPassed++;
            q -= (needed - answered);
        } else {
            break;
        }
    }

    return subjectsPassed;
}

Amazon โœ…
๐Ÿ‘2
โ—๏ธVega-Intellisoft Off Campus Drive 2023 for Trainee Software Engineer | 4-6 LPA*โ—๏ธ

๐Ÿ‘จโ€๐Ÿ’ป Job Role : Trainee Software Engineer
๐ŸŽ“Qualification : BE/B.Tech/ME/M.Tech/MSc/MCA
๐ŸŽ–Batch : 2022/2023
๐Ÿ’ฐPackage : 4-6 LPA

โญ•๏ธ Apply Fast :
 

https://vegaintellisoft.caypro.io/careers/SubmitResume.aspx?jpc=JPC029495