๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
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
long long dfs(int node,vector<vector<int>> &graph,long long &cnt,int k,vector<int> &vis){

  long long val=1;
  vis[node]=1;
  for(auto x : graph[node]){
      if(vis[x]==0)
      val+=dfs(x,graph,cnt,k,vis);
  }


  if(node!=1){
      cnt+=((val+k-1)/k);
  }


  return val;


}
long getMinOperations(int k, int n, vector<int> f, vector<int> t) {

   vector<vector<int>> graph(n+1);
   for(int i=0;i<f.size();i++){
       graph[f[i]].push_back(t[i]);
       graph[t[i]].push_back(f[i]);
   }
   long long cnt=0;
   vector<int> vis(n+1,0);
   dfs(1,graph,cnt,k,vis);
   return cnt;
}

DE Shawโœ…
#include <iostream>
#include <vector>

using namespace std;

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

    vector<long long> gardens(N);
    for (int i = 0; i < N; ++i) {
        cin >> gardens[i];
    }

    long long total_collected = 0;
    for (int i = 0; i < N; ++i) {
        if (gardens[i] > 10) {
            total_collected += gardens[i] - 10;
        }
    }

    cout << total_collected << endl;

    return 0;
}

Garden โœ…
int maxBalancedShipments(vector<int>&a) {
   
    int n=a.size();
    int ans=0;
    int prev=-1;
    bool f=0;
    for(int i=n-1;i>=0;i--)
    {
        if(prev==-1) { prev=a[i]; continue;}
        if(a[i]>prev) { f=1; ans++; prev=-1;}
        else if(f) prev=a[i];
    }
    return ans;
}

Amazon โœ…
#include <iostream>
#include <vector>

using namespace std;

long makePowerNondecreasing(vector<int>& power) {
    int n = power.size();
    long adjustments = 0;

    for (int i = 1; i < n; ++i) {
        if (power[i] < power[i - 1]) {
            adjustments += power[i - 1] - power[i];
        }
    }

    return adjustments;
}

Amazon โœ…
Hello Developers,
We are a startup from Kolkata, we are currently building a very innovative and exciting prototype in the gaming sector. Currently we need a developer with skills and knowledge in machine and deep learning and Artificial intelligence, like llm and nlp. The project is a paid project, and the developer MUST BE FROM KOLKATA, as we will need to guide and interact the person on site about the project.

The key roles will be -
. Understanding and building the required code and project.
. Being punctual and reporting any problems and following instructions.

If interested for this exciting opportunity please dm and send resume or you work to
+91 9330860396. You can also have a chance to work with us full time in future.

The project is contractual work and the pavkage is around โ‚น15k-20k
๐Ÿ‘2