๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.55K subscribers
5.58K photos
3 videos
95 files
9.89K 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
Hey LinkedIn professionals,

I know how difficult it is for freshers to land a job in today's market. ๐Ÿง So, Dexian has come up with an excellent Work from home Opportunity. Yes, you heard that right! A work from home opportunity with a top e-commerce giant! ๐Ÿ’ป

โœ… The best part? Graduates from any field can apply! (2023,2024 graduates only)
Please reach out to me at sandeepana.chakra@dexian.com ๐Ÿš€ or you can DM me on LinkedIn to discuss further!! ๐Ÿ™‚

One interested comment will also fly; I will reach out to you. ๐Ÿ˜Ž
โœ… Role: Catalog Specialist
โœ… Mode: Work from Home.
๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
Photo
#include <bits/stdc++.h>
using namespace std;

int main(){
  
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int N, Smax;
    if(!(cin >> N >> Smax)) return 0;
    vector<char> id(N);
    vector<int> E(N), R(N);
    for(int i = 0; i < N; i++){
        cin >> id[i] >> E[i] >> R[i];
    }

    vector<vector<int>> dp(N+1, vector<int>(Smax+1, 0));
    for(int i = 1; i <= N; i++){
        for(int w = 0; w <= Smax; w++){
            dp[i][w] = dp[i-1][w];
            if(w >= E[i-1])
                dp[i][w] = max(dp[i][w], dp[i-1][w - E[i-1]] + R[i-1]);
        }
    }

    int bestReward = dp[N][Smax];
    if(bestReward == 0){
        cout << -1 << "\n";
        return 0;
    }

    vector<int> chosen;
    int w = Smax;
    for(int i = N; i >= 1; i--){
        if(dp[i][w] != dp[i-1][w]){
            // task i-1 was used
            chosen.push_back(i-1);
            w -= E[i-1];
        }
    }
    reverse(chosen.begin(), chosen.end()); 

    int totalEffort = 0;
    for(int idx : chosen) totalEffort += E[idx];

    for(size_t i = 0; i < chosen.size(); i++){
        if(i) cout << ' ';
        cout << id[chosen[i]];
    }
    cout << "\n";
    cout << totalEffort << ' ' << bestReward << "\n";
    return 0;
}
๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
Photo
#include <iostream>
#include <vector>
#include <unordered_map>
#include <climits>
using namespace std;

int budget;
vector<int> bestpath;

void dfs(int curr, int spent, unordered_map<int, vector<pair<int, int>>> &graph,
         vector<bool> &visited, vector<int> &path, vector<int> &retCost) {
    if (curr == 1 && path.size() > 1 && spent <= budget) {
        if (path.size() > bestpath.size()) {
            bestpath = path;
        }
    }
    for (auto &[nei, cost] : graph[curr]) {
        int total = spent + cost + (nei == 1 ? 0 : retCost[nei]);
        if ((!visited[nei] || (nei == 1 && path.size() > 1)) && total <= budget) {
            bool was = visited[nei];
            visited[nei] = true;
            path.push_back(nei);
            dfs(nei, spent + cost, graph, visited, path, retCost);
            path.pop_back();
            if (!was) visited[nei] = false;
        }
    }
}

vector<int> dijkstra(int n, unordered_map<int, vector<pair<int, int>>> &graph) {
    vector<int> dist(n + 1, INT_MAX);
    vector<bool> visited(n + 1, false);
    dist[1] = 0;

    for (int i = 1; i <= n; ++i) {
        int u = -1;
        for (int j = 1; j <= n; ++j)
            if (!visited[j] && (u == -1 || dist[j] < dist[u]))
                u = j;
        if (dist[u] == INT_MAX) break;
        visited[u] = true;
        for (auto &[v, w] : graph[u]) {
            if (dist[v] > dist[u] + w)
                dist[v] = dist[u] + w;
        }
    }
    return dist;
}

void optimalPath(int N, int M, int price, int *source, int *dest, int *weight) {
    unordered_map<int, vector<pair<int, int>>> graph;
    budget = price;
    bestpath.clear();

    for (int i = 0; i < M; ++i) {
        graph[source[i]].push_back({dest[i], weight[i]});
        graph[dest[i]].push_back({source[i], weight[i]});
    }

    vector<int> retCost = dijkstra(N, graph);
    vector<bool> visited(N + 1, false);
    vector<int> path = {1};
    visited[1] = true;

    dfs(1, 0, graph, visited, path, retCost);

    for (int v : bestpath)
        cout << v << " ";
    cout << endl;
}
โค2
We're Hiring: Software Developer Intern (Work from Office)

At Bachatt, we believe great ideas are built through collaboration, focus, and a growth-driven environment.
If you're passionate about building and ready to learn, this opportunity is for you.

๐Ÿ”น Position: Software Developer Intern (Frontend + Backend)
๐Ÿ”น Duration: July to December 2025 (Immediate joiners preferred)
๐Ÿ”น Stipend: โ‚น20,000 โ€“ โ‚น30,000/month
๐Ÿ”น Location: Gurgaon /Work from Office
๐Ÿ”น Open to: 2025 & 2026 graduates

๐Ÿ“„ All details & application form here: https://lnkd.in/g2ncAmC9

Apply now and be part of a team that builds with intent and impact.
Kindly avoid sending personal messages. Share the CV directly to the email ID provided. Only shortlisted candidates will be contacted

๐Ÿš€ Weโ€™re Hiring: Backend Developer (SDE-I)

Weโ€™re looking for fresh minds from Indiaโ€™s top engineering institutes - IIT, NIT, BITS - who are strong in DSA and backend fundamentals, and eager to work on high-impact products.

Role: Backend Developer (SDE-I)
Eligibility: 2025 graduates from IIT/NIT/BITS
Tech Stack: Node.js / Python
Location: Sector 142, Noida (Work from Office only)

If you're passionate about building scalable backend systems and ready to kickstart your tech journey - weโ€™d love to hear from you!

Share your resume at monika.mukhija@fantv.in