๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.63K 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
Openings For Fullstack Developer, Trainee Fresher Role: Trainee

Qualification: BE (any stream) MCA, BCA, BCCA, BSC, MSC.

Skills Required: HTML, CSS

Interested candidates can apply along their resume and contact us Email Id: percept.swatib@gmail.com
Delhivery is urgently hiring for Associate/ Senior Associate - Inside Sales role based in Goa. Interested candidates, please share your resume to sanjana.suresh@delhivery.com ASAP.

Mention subject line as : Resume for Inside Sales role - Goa.

Requisites:
- Min 0 to 5yrs of exp in Inside sales
- Excellent communication skills
- Good with sales pitch, negotiations and cold calling

Note: we will get in touch only with the shortlisted profiles.
#include<bits/stdc++.h>
using namespace std;

int main(){
    int n;
    cin>>n;
    vector<int> tmp(n);
    for(int i=0; i<n; i++)
    {
        cin>>tmp[i];
    }
    int k;
    cin>>k;
    vector<int> prefMax(n), suffMin(n);
    int mx = 0;
    for(int i=0; i<n; i++)
    {
        mx = max(tmp[i], mx);
        prefMax[i] = mx;
    }
    int mn = INT_MAX;
    for(int i=n-1; i>=0; i--)
    {
        mn = min(mn, tmp[i]);
        suffMin[i] = mn;
    }
    int res = 0;
    for(int i=0; i<n-1; i++)
    {
        if(prefMax[i] + suffMin[i+1] >= k)
            res++;
    }
    cout<<res<<endl;
    return 0;
}

Organisation Flipkart OAโœ…
๐Ÿ‘1
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main()
{
    int n, m;
    cin >> n >> m;
    vector<vector<int>> v(n, vector<int>(m));
    for (int i = 0; i < n; i++)
    {
        for (int j = 0; j < m; j++)
        {
            cin >> v[i][j];
        }
    }
    map<int, int> mp;
    for (int j = 0; j < m; j++)
    {
        int mx = 0;
        for (int i = 0; i < n; i++)
        {
            mx = max(mx, v[i][j]);
        }
        for (int i = 0; i < n; i++)
        {
            if (v[i][j] == mx)
                mp[i]++;
        }
    }
    vector<vector<int>> dp;
    for (auto it : mp)
    {
        dp.push_back({it.second, it.first});
    }
    sort(dp.rbegin(), dp.rend());
    double ans = 0;
    int id = -1, count = 0;
    for (int i = 0; i < dp.size(); i++)
    {
        if (dp[i][0] == dp[0][0])
        {
            double sum = 0.0;
            int ind = dp[i][1];
            for (int j = 0; j < m; j++)
            {
                sum += v[ind][j];
            }
            double avg = sum / m;

            if (ans < avg)
            {
                ans = avg;
                id = ind, count = dp[i][0];
            }
        }
        else
        {
            break;
        }
    }
    cout << id << " " << count << endl;
}




Network code flipkart โœ…
Mikuni India Neemrana Require GET [Mechanical/Electronic & Communication] for their Plant based at Neemrana, Rajshatan

Qualification - BE/B.Tech

Year of passing : 2023/2022/2021

TPO & candidates are requested to get in touch!

We require Instant Joiner!

Intrested candidates can directly get in touch at virendra_shekhawat@mikuni.co.in
def get_char_with_kth_highest_freq(s, k):
    freq = {} 
    for char in s:
        freq[char] = freq.get(char, 0) + 1
    grouped = {}
    for char, f in freq.items():
        if f not in grouped:
            grouped[f] = []
        grouped[f].append(char)
    sorted_groups = sorted(grouped.items(), key=lambda x: (-x[0], x[1]))
   
    if k > len(sorted_groups):
        return -1
   
    return sorted(sorted_groups[k-1][1])[0]
T = int(input())

for _ in range(T):
    s = input().strip()
    k = int(input().strip())
    print(get_char_with_kth_highest_freq(s, k))

K frequency โœ…
#include <iostream>
using namespace std;

int calculateDigitSum(int number) {
    int digitSum = 0;

    while (number > 0 || digitSum > 9) {
        if (number == 0) {
            number = digitSum;
            digitSum = 0;
        }
        digitSum += number % 10;
        number /= 10;
    }
    return digitSum;
}

int main() {
    long long int inputNumber;
    cin >> inputNumber;
    cout << 1LL * inputNumber * calculateDigitSum(inputNumber);

    return 0;
}

Elia and Number
Amazon โœ…
#include <iostream>
#include <vector>
#include <cmath>
using namespace std;

bool isPrime(int n)
{
    if (n <= 1)
        return false;

    for (int i = 2; i <= sqrt(n); i++)
        if (n % i == 0)
            return false;

    return true;
}

int main() {
    int n;
    cin >> n;
    vector<int> numbers(n);

    for (int i = 0; i < n; i++) {
        cin >> numbers[i];
    }

    int firstPrimeIndex = -1;
    int lastPrimeIndex = -1;

    for (int i = 0; i < n; i++) {
        if (isPrime(numbers[i])) {
            firstPrimeIndex = i;
            break;
        }
    }

    for (int i = n - 1; i >= 0; i--) {
        if (isPrime(numbers[i])) {
            lastPrimeIndex = i;
            break;
        }
    }

    if (firstPrimeIndex == -1) {
        cout << -1;
    } else {
        cout << lastPrimeIndex - firstPrimeIndex;
    }

    return 0;
}

Maximum Prime index
Amazon โœ