๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.61K subscribers
5.61K photos
3 videos
95 files
10.5K 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
#include <bits/stdc++.h>
using namespace std;
#define int long long
int32_t main(){
    // int t;
    // cin >> t;
    // while(t--){
    int n ;
    cin >> n ;
    vector<int> vec(n);
    for(int i = 0 ;i < n ; ++i){
        cin >> vec[i];
    }
    sort(vec.begin(),vec.end());
    for(auto it : vec)
        cout << it << " ";
    cout << "\n";
    // }
}


Hack on Amazon โœ…
#include <iostream>
using namespace std;

int main() {
    int N;
    cin >> N;

    int totalCoins = 0;
    int i = 1;
    while (true) {
        int coins = N / i;
        if (coins < 1) {
            break;
        }
        totalCoins += coins;
        i++;
    }

    cout << totalCoins << endl;

    return 0;
}

Hack on Amazon โœ…
๐Ÿ‘1
#include <iostream>

using namespace std;

const int MOD = 1e9 + 7;

long long binomialCoefficient(int n, int k) {
    if (k > n - k) {
        k = n - k;
    }
    long long res = 1;
    for (int i = 0; i < k; ++i) {
        res = (res * (n - i)) % MOD;
        res /= (i + 1);
    }
    return res % MOD;
}

int countDistinctSequences(int x, int y) {
    return binomialCoefficient(y - 1, x - 1);
}

int main() {
    int x, y;
    cin >> x >> y;

    int result = countDistinctSequences(x, y);
    cout << result << endl;

    return 0;
}

Hacks on Amazon โœ…
๐Ÿ‘2
#include <iostream>
#include <string>
#include <algorithm>

using namespace std;

string lexicographicallySmallest(string P, string Q) {
    int N = P.size();
    for (int i = 0; i < N; ++i) {
        if (P[i] == Q[i]) {
            char replacement = 'a';
            while (replacement == P[i] || replacement == Q[i]) {
                replacement++;
            }
            P[i] = replacement;
        }
    }
    return P;
}

int main() {
    int N;
    string P, Q;
    cin >> N >> P >> Q;

    string result = lexicographicallySmallest(P, Q);
    cout << result << endl;

    return 0;
}

Hacks on Amazon โœ…
๐Ÿ‘1
Deloitte is looking for potential candidates in Risk Consulting Profile
Hiring for Analyst/Senior Analyst positions
Educational Qualifications- Graduate
Work Experience- 0-2 years
Skills-
โ€ขStrong writing skills- Excellent command over written English
โ€ขAbility to work independently with minimal supervision
โ€ขHigh standard of accuracy and eye for detail
โ€ขExcellent time management skill

If interested, kindly share your updated CV with sakshide21@gmail.com with subject as - RA_Analyst/ Senior Analyst
SPHERE.IO IS HIRING!!!

https://www.linkedin.com/company/spehre-io/

Contact the HR for further processing

https://www.linkedin.com/in/asmita-santra-238364226?

Or Email the cv at :  asmitasantra04@gmail.com

BCOM, M.COM, B.SC,M.SC, BA, MA CAN APPLY

NON IT DOMAIN CANDIDATES
NO B.TECH, M.TECH, BCA, MCA

*ABOUT COMPANY:-*
Spehre is a platform for building a comprehensive professional profile. Its AI rating system evaluates the educational background, work experience, and skillset of users to create a unique rating that reflects their qualifications and capabilities. Recruiters can use Spehre to match job requirements with Spehre-rated candidates, streamlining the hiring process.

*CRITERIA*:-

Under Graduates/ Graduates/ Freshers

*DURATION* :-  2 months (remote internship)

*ON COMPLETION* :-

- Various Certificates
- Performance Based Stipend (up to 10k)
- Letter of Recommendation
- PPO (if you perform well)
๐Ÿ‘1
#include <iostream>
#include <vector>
#include <string>
using namespace std;

int main() {
    string str;
    cin >> str;

    vector<int> count(26, 0); // Initialize count for each alphabet letter to 0

    for (int i = 0; i < str.size(); i++) {
        int index = str[i] - 'a'; // Convert character to corresponding index in count array
        cout << str[i] << ":" << count[index] << " ";
        cout<<endl;// Output letter and its count
        count[index]++; // Increment count for current letter
    }

    return 0;
}

Hacks on Amazon โœ…
๐Ÿ‘2
๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
Photo
#include <iostream>
#include <vector>
#include <queue>
#include <unordered_map>
#include <climits>
using namespace std;
vector<int> dijkstra(int start, int end, const vector<vector<int>>& graph, int N) {
    vector<int> dist(N + 1, INT_MAX);
    dist[start] = 0;
    priority_queue<pair<int, int>, vector<pair<int, int>>, greater<pair<int, int>>> pq;
    pq.push({0, start});
    while (!pq.empty()) {
        int d = pq.top().first;
        int u = pq.top().second;
        pq.pop();
        if (d > dist[u]) continue;
        for (int v : graph[u]) {
            if (dist[u] + 1 < dist[v]) {
                dist[v] = dist[u] + 1;
                pq.push({dist[v], v});
            }
        }
    }
    return dist;
}
vector<int> solution(const vector<int>& A, const vector<int>& B, int N) {
    vector<vector<int>> graph(N + 1);
    for (int i = 1; i < N; ++i) {
        graph[i].push_back(i + 1);
        graph[i + 1].push_back(i);
    }
    vector<int> initial_dist = dijkstra(1, N, graph, N);
    vector<int> results;
    for (int i = 0; i < A.size(); ++i) {
        graph[A[i]].push_back(B[i]);
        graph[B[i]].push_back(A[i]);
        vector<int> new_dist = dijkstra(1, N, graph, N);
        results.push_back(new_dist[N]);
    }
    return results;
}

Hashedin โœ