๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
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
import java.util.HashMap;
import java.util.Map;

public class CabinAllocation {

    public static int calculatePeopleWithoutCabin(String input) {
        Map<Character, Integer> cabinCount = new HashMap<>();

        for (char c : input.toCharArray()) {
            cabinCount.put(c, cabinCount.getOrDefault(c, 0) + 1);
        }

        int peopleWithoutCabin = 0;
        for (char key : cabinCount.keySet()) {
            int count = cabinCount.get(key);
            if (count % 2 != 0) {
                peopleWithoutCabin += (count - 1) / 2;
            }
        }

        return peopleWithoutCabin;
    }

Java โœ…
How many people didn't get a cabin
def solution(matrix):
    m = len(matrix)
    n = len(matrix[0])

    for k in range((min(m, n) - 1) // 2 + 1):
        A = []

        for j in range(k, n - k):
            A.append(matrix[k][j])

        for i in range(k + 1, m - k):
            A.append(matrix[i][n - k - 1])

        for j in range(n - k - 2, k - 1, -1):
            A.append(matrix[m - k - 1][j])

        for i in range(m - k - 2, k, -1):
            A.append(matrix[i][k])

        A.sort()

        result_idx = 0

        for j in range(k, n - k):
            matrix[k][j] = A[result_idx]
            result_idx += 1

        for i in range(k + 1, m - k):
            matrix[i][n - k - 1] = A[result_idx]
            result_idx += 1

        for j in range(n - k - 2, k - 1, -1):
            matrix[m - k - 1][j] = A[result_idx]
            result_idx += 1

        for i in range(m - k - 2, k, -1):
            matrix[i][k] = A[result_idx]
            result_idx += 1

    return matrix
๐Ÿ‘1
string solve(string s) {
    vector<int> freq(26, 0);
    for (char c : s) {
        freq[c - 'a']++;
    }

    string fh = "", m = "";
    for (int i = 0; i < 26; ++i) {
        if (freq[i] % 2 == 1) {
            if (m == "" || m > string(1, i + 'a')) {
                m = string(1, i + 'a');
            }
        }
        fh += string(freq[i] / 2, i + 'a');
    }

    string sh = fh;
    reverse(sh.begin(), sh.end());

    return fh + m + sh;
}
bool solve(vector<string>& w, string v) {
    unordered_set<string> ws(w.begin(), w.end());
    string wd = "";
    for (char c : v) {
        if (isupper(c)) {
            if (!wd.empty() && !ws.count(wd)) {
                return false;
            }
            wd = "";
        }
        wd += tolower(c);
    }
    return ws.count(wd);
}
Latest Hiring opportunities for Batches 2020/2021/2022/2023/2024/2025๐Ÿš€


1. Paytm Hiring for Java Developer
๐Ÿ”บ Batch : 2020 / 2021 / 2022
๐Ÿ”บ Location : Noida


๐Ÿ‘‰๐ŸปApply here - https://jobs.lever.co/paytmbank/5cfc8e7e-14f3-4cd2-9795-91f4c9c20400



2. Tata 1 Mg Hiring for SDE 1
๐Ÿ”บ Batch : 2023 / 2024
๐Ÿ”บ Location :Gurgaon


๐Ÿ‘‰๐ŸปApply here - https://1mg.darwinbox.in/ms/candidate/careers/a656584f8055e5


3. Trade Desk Hiring for Summer SDE Intern
๐Ÿ”บ Batch : 2025
๐Ÿ”บ Location : Bengaluru


๐Ÿ‘‰๐ŸปApply here - https://boards.greenhouse.io/thetradedesk/jobs/4150177007?gh_src=57a33adb7us



4. BloomBerg Hiring for SDE Intern
๐Ÿ”บBatch : 2023 / 2024 / 2025
๐Ÿ”บLocation : Bengaluru / Hyderabad / Gurgaon / Mumbai / Chennai
๐Ÿ”บCTC Stipend : 20 LPA K per month.


๐Ÿ‘‰๐ŸปApply here - https://careers.bloomberg.com/job/detail/118748?ittk=E1RNWE73BD


5.Nissan Hiring for SDE 1
๐Ÿ”บ Batch : 2022 / 2023 / 2024
๐Ÿ”บ Location : Trivandrum


๐Ÿ‘‰๐ŸปApply here - https://alliance.wd3.myworkdayjobs.com/en-US/nissanjobs/job/software-engineer-i_r00151957-1


6. Cadence Hiring for SDE Intern
๐Ÿ”บ Batch : 2024 / 2025
๐Ÿ”บ Location : Noida


๐Ÿ‘‰๐ŸปApply here - https://cadence.wd1.myworkdayjobs.com/en-US/External_Careers/job/Intern-Software-engineering_R44773


7. Google Hiring for Associate Product Manager
๐Ÿ”บ Batch : 2024
๐Ÿ”บ Location : Bengaluru


๐Ÿ‘‰๐ŸปApply here - https://www.google.com/about/careers/applications/jobs/results/100297584867713734-associate-product-manager-university-graduate-2024


8. HashiCorp Hiring for SDE Interm
๐Ÿ”บ Batch : 2024 / 2025
๐Ÿ”บ Location : Bengaluru


๐Ÿ‘‰๐ŸปApply here - https://www.hashicorp.com/career/5523956


9. Ride Cell Hiring for SDE Intern
๐Ÿ”บ Batch : 2024 / 2025
๐Ÿ”บ Location : Pune

๐Ÿ‘‰๐ŸปApply here - https://docs.google.com/forms/d/e/1FAIpQLScT2gdgW-LQMThkFGlhi6LI3lmJp127-TaSus1rWwpdI_g7sQ/viewform


10. Nvdia Hiring for SDE Intern
๐Ÿ”บ Batch : 2024 / 2025
๐Ÿ”บ Location : Pune


๐Ÿ‘‰๐ŸปApply here - https://nvidia.wd5.myworkdayjobs.com/en-US/NVIDIAExternalCareerSite/job/India-Pune/Software-Engineering-Intern_JR1974418