๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.59K subscribers
5.59K photos
3 videos
95 files
10.1K 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
โ—๏ธCentralogic Off Campus Drive 2024 Hiring As Software Engineer Trainee | INR 4 LPA*โ—๏ธ

๐Ÿ‘จโ€๐Ÿ’ปJob Role : Software Engineer Trainee
๐ŸŽ“Qualification : B.E/B.Tech/BCA/BCS/MCA/MCS
๐ŸŽ–Job Location : Pune
๐Ÿ’ฐPackage : 4 LPA*

โญ•๏ธ Apply Fast :
  

https://apply.centralogic.net/#/job_details
Dear candidate, Genpact is hiring for AML/KYC (Financial crime & compliance)

Please find the below criteria

1) candidates must have basic knowledge of AML/KYC along with good communication skills written/ verbal as well

2) 0-2 years of experience / fresher/graduate/ MBA fresher also apply.

3) Noida location

4) UK shift and 5 days working from office Please send your resume Priyanka.Kharbanda@Genpact.com
void solve(int tc)
{
        int n,k;
        string s;
        cin >> k >> s;
        n = s.size();
        string str="";
        string find=s.substr(k,n-1);
        int i=0,j=k-1;
        while(i<j)
            str+=s[i++],str+=s[j--];
        if(i==j) str+=s[j];
        reverse(all(str));
        string res = str + find;
        cout << res << '\n';
    }

String Reversal โœ…
๐Ÿ‘1
๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
Photo
ll dp[102][2][902];
const int mod = 1e9 + 7;
ll solve(int i, bool tight, int sum_so_far, int Sum, string number, int len) {
    if (i == len) {
        if (sum_so_far <= Sum)
            return 1;
        else
            return 0;
    }

    ll &ans = dp[i][tight][sum_so_far];
    if (~ans) return ans;

    ans = 0;
    bool ntight;
    int nsum_so_far;
    for (char currdigit = '0'; currdigit <= '9'; currdigit++) {
        if (!tight && currdigit > number[i]) break;
        ntight = tight || currdigit < number[i];
        nsum_so_far = sum_so_far + (currdigit - '0');
        ans += solve(i + 1, ntight, nsum_so_far, Sum, number, len);
        ans %= mod;
    }
    return ans;
}
void op() {
    string num1, num2;
    int mxmSum, mnmSum;
    cin >> num1 >> num2 >> mnmSum >> mxmSum;
    mnmSum--;
    ll res1, res2, fin1 = 0;

    if(num1 != "0") {
        for(int i = num1.size() - 1; i >= 0; i--){
            if(num1[i] != '0'){
                num1[i]--;
                break;
            }else num1[i] = '9';
        }
        if(num1[0] == '0'){
            reverse(num1.begin(), num1.end());
            num1.pop_back();
            reverse(num1.begin(), num1.end());
        }
        ::memset(dp, -1, sizeof dp);
        res1 = solve(0, 0, 0, mnmSum, num1, num1.size());
        ::memset(dp, -1, sizeof dp);
        res2 = solve(0, 0, 0, mxmSum, num1, num1.size());
        fin1 = res2 - res1;
        fin1 %= mod;
    }

    ::memset(dp, -1, sizeof dp);
    res1 = solve(0, 0, 0, mnmSum, num2, num2.size());
    ::memset(dp, -1, sizeof dp);
    res2 = solve(0, 0, 0, mxmSum, num2, num2.size());
    ll fin2 = res2 - res1;
    fin2 %= mod;

    cout << (fin2 - fin1) % mod << "\n";
}

Digit sums โœ…
EY is hiring for Freshers into Researchanalyst role ๐Ÿ“ข

Candidates with experience in secondarymarketresearch and thirdpartyduediligence are applicable for this role only.

๐Ÿ“ Location: Noida
๐Ÿ“Œ Work mode: Work from Office

โœ… Interested candidates can share their CVs at himani.mittal@in.ey.com along with their below details.

Name:
current location:
preferred location:
Current CTC:
Expected CTC:
Current Company:
Official Notice period:
๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
Photo
#include <bits/stdc++.h>
using namespace std;

int main() {
    int n;cin>>n;
    vector<int>v(n);
    int bud;cin>>bud;
    for(int i=0;i<n;i++){
        cin>>v[i];
    }
    int diff=INT_MAX;
    pair<int,int>p;
    for(int i=0;i<(n-1);i++){
        int left=bud-v[i];
        if(left<=0)
        {
             int curr_diff=bud-v[i]-v[i+1];
            if(abs(curr_diff)<diff){
                diff=abs(curr_diff);
                p.first=v[i];
                p.second=v[i+1];
               
            }
            continue;
        }
        if(v[n-1]<=left){
            int curr_diff=bud-v[i]-v[n-1];
            if(abs(curr_diff)<diff){
                diff=abs(curr_diff);
                p.first=v[i];
                p.second=v[n-1];
               
            }
            continue;
        }
        int idx=lower_bound(v.begin()+i+1,v.end(),bud-v[i])-v.begin();
        if(idx==(i+1)){
            int curr_diff=bud-v[i]-v[idx];
            if(abs(curr_diff)<diff){
                diff=abs(curr_diff);
                p.first=v[i];
                p.second=v[idx];
               
            }
        }
        else{
            int curr_diff1=abs(bud-v[i]-v[idx]);
            int curr_diff2=abs(bud-v[i]-v[idx-1]);
            if(curr_diff2<curr_diff1){
                if(curr_diff2<diff){
                diff=curr_diff2;
                p.first=v[i];
                p.second=v[idx-1];
                }
            }
            else{
                if(curr_diff1<diff){
                diff=curr_diff1;
                p.first=v[i];
                p.second=v[idx];
                }
            }
           
        }
       
    }
    cout<<p.first<<endl;
    cout<<p.second<<endl;
   
return 0;
}

Budget issues โœ