๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
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 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
Do you enjoy reading this channel?

Perhaps you have thought about placing ads on it?

To do this, follow three simple steps:

1) Sign up: https://telega.io/c/cs_algo
2) Top up the balance in a convenient way
3) Create an advertising post

If the topic of your post fits our channel, we will publish it with pleasure.
๐Ÿ‘1