Coding | EXAMS | IBM ACCENTURE | VIRTUSA | IBM | AMAZON | TCS | EPAM | WILEY EDGE | TECH MAHINDRA | JPMORGAN | HCL | WIPRO
3.37K subscribers
1.13K photos
3 videos
17 files
373 links
Main channel https://t.me/Coding_000
Contact Admin πŸ‘‰ @ILOVEU_143 for booking your exam slots
Web- https://coding000.github.io/Projects/
πŸ’―% clearance in any placement exams
OffCampus -https://t.me/Offcampus_000
Discussion- https://t.me/exams_discussion
Download Telegram
Guys dont message me I wont sell codesβœ…

It contains plagiarism😒

Share @Coding_000❀️
πŸ‘3
Guys Velotio exam plagiarism will be checked so please change method order and variable name 

Share @Coding_000❀️
πŸ‘1πŸ₯°1
Guys Velotio codes & some mcq uploaded ....scroll above...check it..

Share @Coding_000β€οΈβœ…
πŸ‘2
Guys Velotio codes & some mcq uploaded ....scroll above...check it..
Pythonβœ…

Share @Coding_000β€οΈβœ…
πŸ‘3
All the best ur jobs

Bless u every one πŸ˜‡πŸ₯Ή

All your Dreams come true grab every opportunity😊
❀11πŸ”₯6πŸ‘2😍2πŸ₯°1🀩1
Any one want projects -mini or Major 😊  Unique projectπŸ’₯πŸ’₯
Domain AI/ML
contact -@ILOVEU_143 ❀️

Anyone need help in GRE and TOFEL, GMAT, DUOLINGO Exam help πŸ‘¨β€πŸ’»πŸ‘¨β€πŸ’»

SOP , LORβœπŸ“

Note -paid πŸ€‘

shareβœ… share βœ…@Coding_000
πŸ‘4πŸ₯°1😍1
Any campus placement or Offcampus Exam.

Help available in All exams.

Book your slot.πŸ‘¨β€πŸ’»

Contact @ILOVEU_143βœ…

Its paid βœ…
100% clearance guarantee πŸ”₯πŸ”₯
Share @Coding_000 ❀️
πŸ‘2πŸ₯°1
class Solution{
    public:
    long long refueling(int X)
    {
        long long a, b;
        for(int i=0; i<X; i++){
            a = pow(2,i);
            if(a == X)return a;
            else if(a>X){
                b = pow(2,i-1);
                if(abs(X-a) == abs(X-b))return a;
                if(abs(X-a) < abs(X-b))return a;
                else return b;
            }
        }
        return -1;
    }
};

C++
Refueling
πŸ‘1
class Solution{
    public:
    string kPeriodic(string s, int K){
        // code here
        map<char,int> hm;
        for(int i=0;i<s.size();i++){
          hm[s[i]]++;
        }
        int n= s.size();
        int res= n/__gcd(n,K);
       
    for(auto t:hm){
        if(t.second % res)
            return "-1";
        }
       
        string p="";
       
        for(auto t:hm){
              int pre=t.second/res;
              while(pre--)
               p+=t.first;
          }
         
        string ans="";
        while(res--)
            ans+=p;
        
       return ans;

    }
};

C++
K-Periodic Circular String
Second
GFG Weekly Coding Contest 103
πŸ‘2
Guys share the screenshot in large groups and Share with your friends βœ…πŸ”₯ @whitehatcoding❀️

I don't see anyone sharing πŸ₯²
πŸ‘1
class Solution {
  public:
    int finalDestination(int N, int M, int K, vector<vector<int>> &Roads) {
        // code here
         vector<vector<pair<int, int>>> adjList(N);
   
    for (int i = 0; i < N; i++) {
        adjList[i] = vector<pair<int, int>>();
    }
   
    for (vector<int>& road : Roads) {
        int cityA = road[0];
        int cityB = road[1];
        int weight = road[2];
        adjList[cityA].push_back(make_pair(cityB, weight));
    }
   
    vector<vector<int>> dp(N, vector<int>(K + 1, INT_MAX));
   
    dp[0][0] = 0;
   
    for (int k = 0; k <= K; k++) {
        for (int i = 0; i < N; i++) {
            if (dp[i][k] != INT_MAX) {
                for (pair<int, int>& neighbor : adjList[i]) {
                    int nextCity = neighbor.first;
                    int weight = neighbor.second;
                   
                    if (k + 1 <= K) {
                        dp[nextCity][k + 1] = min(dp[nextCity][k + 1], dp[i][k] + weight / 2);
                    }
                   
                    dp[nextCity][k] = min(dp[nextCity][k], dp[i][k] + weight);
                }
            }
        }
    }
   
    int minFuel = INT_MAX;
   
    for (int k = 0; k <= K; k++) {
        minFuel = min(minFuel, dp[N - 1][k]);
    }
   
    return minFuel == INT_MAX ? -1 : minFuel;
    }
};
πŸ‘5❀2
Guys share the screenshot in large groups and Share with your friends βœ…πŸ”₯ @CODING_000❀️

I don't see anyone sharing πŸ₯²
πŸ‘2