๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.58K subscribers
5.59K photos
3 videos
95 files
10K 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
ZS is Hiring for its Business Technology Solutions Team @ Pune!

Role: Business Technology Solutions Associate (BTSA)
Experience: 0-3 Years
Location: Pune
Notice Period: Immediate joiners only

Qualifications:
- Bachelor's degree in Computer Science or related field
- Skills in ETL technologies (Informatica, Talend, SSIS), data warehousing, and SQL
- Exposure to Cloud Platforms (AWS, Azure, GCP) a plus

Additional Skills:
- Strong communication and problem-solving abilities
- Ability to work in a global team environment
- Willingness to travel as needed


Please send your resume to manish.khatri@zs.com
#include <iostream>
#include <algorithm>

using namespace std;

#define ll long long

ll solve(int s1, int s2, int p) {
    ll minT1 = p / s1;
    ll rem1 = p % s1;

    while (minT1 >= 0) {
        if (rem1 % s2 == 0) {
            break;
        }
        minT1--;
        rem1 += s1;
    }

    ll minT2 = p / s2;
    ll rem2 = p % s2;

    while (minT2 >= 0) {
        if (rem2 % s1 == 0) {
            break;
        }
        minT2--;
        rem2 += s2;
    }

    if (minT1 < 0 && minT2 < 0) {
        return -1;
    } else if (minT1 < 0) {
        return minT2 + rem2 / s1;
    } else if (minT2 < 0) {
        return minT1 + rem1 / s2;
    } else {
        return min(minT1 + rem1 / s2, minT2 + rem2 / s1);
    }
}

int main() {
    int s1, s2, p;
    cin >> s1 >> s2 >> p;
    cout << solve(s1, s2, p) << endl;
    return 0;
}

Track in Hackathon โœ…
โค1
int getPotentialOfWinner(vector<int> potential, long k)
{
    int n = potential.size();

    int x = potential[0];
    int m = 0;
    for (int i = 1; i < n; i++)
    {
        if (m != k)
        {
            if (x > potential[i])
            {
                m++;
            }
            else
            {
                x = potential[i];
                m = 1;
            }
        }
    }

    return x;
}

Chess Tournament โœ…
๐Ÿ‘1
#include <iostream>
#include <unordered_map>
#include <string>
#include <climits>

int getMinGroup(std::string str) {
    std::unordered_map<char, int> mapSubjects;
    int keysCount = 0;
    const int len = str.length();

    for (int i = 0; i < len; ++i) {
        char subject = str[i];
        if (subject == 'b' subject == 'm' subject == 'c' subject == 'p' subject == 'z') {
            if (mapSubjects.find(subject) == mapSubjects.end()) {
                ++keysCount;
                mapSubjects[subject] = 1;
            } else {
                ++mapSubjects[subject];
            }
        }
    }

    if (keysCount != 5) {
        return 0;
    }

    int min = INT_MAX;

    for (const auto& entry : mapSubjects) {
        if (entry.second < min) {
            min = entry.second;
        }
    }

    return min;
}

The Perfect Team โœ…
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

int getMinimumTime(vector<int>& processSize, vector<int>& capacity) {
    sort(processSize.rbegin(), processSize.rend());
    sort(capacity.rbegin(), capacity.rend());
   
    int ptr = 0;
    int time = 1;
   
    for (int process : processSize) {
        if (ptr == capacity.size()) {
            time++;
            ptr = 0;
        }
        if (process > capacity[ptr]) {
        
            if (process > capacity[0]) {
                return -1;
            }
            time++;
            ptr = 1;
        } else {
            ptr++;
        }
    }
    return 2*time-1;
}

Process Allocation โœ…
๐Ÿ‘1
def min_total_marks(num_questions, marks):
    marks.sort()
   
    total_marks = marks[0]
   
    for i in range(1, num_questions):
        if marks[i] <= marks[i - 1]:
            marks[i] = marks[i - 1] + 1
        total_marks += marks[i]
   
    return total_marks

Mr. Myers and the Exam โœ…
๐Ÿ‘1
BharatX  hiring summer interns! ๐Ÿ’ฅ

We are a team of young, ambitious, and bold people love to dedicate their lifeโ€™s work towards something meaningful for India & the world. We love to have a shit ton of fun and cut the bullshit corporate culture! Here is your opportunity to build products that impact credit accessibility of 50M+ users. Apply below!!


Internship Details:
3-6 months
Final year of college
Onsite internship in Bangalore

What We Offer:
Stipend: 50k/month
PPO based on performance

How to Apply:
Fill out the form
๐Ÿ‘‰data science intern -
https://lnkd.in/g4qTQbQ6
๐Ÿ‘‰frontend intern -
https://lnkd.in/gdCtAH4M
import java.util.Arrays;

public class Main {

    static int findNumOfPairs(int[] a, int[] b) {
        Arrays.sort(a);
        Arrays.sort(b);

        int i = a.length -1 ;
        int j = b.length - 1;
        int pairs = 0;

        while (i >= 0 && j >= 0) {
            if (a[i] > b[j]) {
                pairs++;
                i--;
                j--;
            } else {
                j--;
            }
        }

        return pairs;
    }

Pairs โœ…
๐Ÿ‘1
def count_vowels(string):
    count = 0
    vowels = set('aeiou')
    for char in string:
        if char.lower() in vowels:
            count += 1
    return count

def determine_winner(strings):
    winners = []
    for string in strings:
        if count_vowels(string) % 2 == 0:
            winners.append("Chris")
        else:
            winners.append("Alex")
    return winners

System and Strings โœ…
๐Ÿ‘Ž5๐Ÿ‘1