en
Feedback

Don't get caught by a cheater! Telemetrio finds and tags such channels 👉 If you want to see the tag, subscribe 👈

CODE WITH VIRUS

CODE WITH VIRUS

Open in Telegram

#tcsnqt #tcspaidnqt #tcs

Show more
1 278
Subscribers
No data24 hours
No data7 days
No data30 days
Posts Archive
19)5875

Share and support

Tcs 2pm answers👇 1)47 2)0.2 3)0.96 4)143.67 3)0.96 4)143.67 5)4 6)25 6)25 7)5.5 8)12% 9)77.14 11)720 10)43.75 13)7083 14)6hrs 11)720 12)226 13)7087 15)8km 16)880 17)99.5 18) 14

Permutation Making C++ GFG Weekly Coding Contest 95 int makePermutation(int N, vector<int> &arr) {         // code here         set<int> st;     vector<int> rem;          // Storing one instance of every element     // from 1 to N     for (int i = 1; i <= N; i++) {         st.insert(i);     }     for (int i = 0; i < N; i++) {         if (st.find(arr[i]) != st.end())             st.erase(arr[i]);         else             rem.push_back(arr[i]);     }          // Sorting in descending order     sort(rem.begin(), rem.end());     reverse(rem.begin(), rem.end());     int pt = 0;     bool flag = false;     for (auto& x : rem) {         auto it = st.end();         it--;         int p = (*it);         if (p > (x - 1) / 2) {             flag = true;             break;         }         st.erase(it);     }     if (flag) {         // Not possible to make permutation.         return -1;     }     else {         // Minimum number of operation required.         return rem.size();     }     } Permutation Making C++ GFG Weekly Coding Contest 95

Stone Bags C++ GFG Weekly Coding Contest 95 class Solution {   public:     int stoneBags(int n, vector &arr) {         sort(arr.begin(),arr.end());         mapmp;         for(int i=0;ians;         for(auto it: mp){             ans.push_back(it.first);         }         if(ans.size()==1)          return 0;          else if(ans.size()==2) return abs(ans[0]-ans[1])*2;          else{              int m=ans.size();              int res=0;              for(int i=0;i1;i--){                  res=max(res,ans[i]-ans[0]+ans[i]-ans[i-1]);              }              return res;          }             } }; Stone Bags C++ GFG Weekly Coding Contest 95

Valuable String C++ GFG Weekly Coding Contest 95 string valuableString(int n, vector &arr)     {         int mx = INT_MIN;         string ans = "";         for(int i=0;i mx)             {                 mx = abs(c-v);                 ans = arr[i];             }         }         return ans;     } Valuable String C++ GFG Weekly Coding Contest 95

Share ✅

Valuable String C++ GFG Weekly Coding Contest 95 string valuableString(int n, vector<string> &arr)     {         int mx = INT_MIN;         string ans = "";         for(int i=0;i<arr.size();i++)         {             string str = arr[i];             int v = 0;             int c = 0;             for(int i=0;i<str.length();i++)             {                 if(str[i]=='a' str[i]=='e' str[i]=='i' str[i]=='o' str[i]=='u')                 {                     v++;                 }                 else                 {                     c++;                 }             }             // cout<<c<<" "<<v<<endl;             if(abs(c-v) > mx)             {                 mx = abs(c-v);                 ans = arr[i];             }         }         return ans;     } Valuable String C++ GFG Weekly Coding Contest 95

Array game
Array game

Nodejs✅ Toggle sequence✅✅✅ All passed✅✅
+1
Nodejs✅ Toggle sequence✅✅✅ All passed✅✅

🛬🔴Prochant Python Developer Hiring Challenge - 2023 Urgent Hiring 🔜🔜 🔔Apply Link- https://assessment.hackerearth.com/challenges/new/hiring/prochant-python-developer-hiring-challenge-2023/

+7
2021 Exam Bramhastra.pdf77.41 MB

+9
RT MCQs.pdf9.92 KB

image_2021-12-09_16-08-40.png8.53 KB

I am mcq IMP.pdf36.69 MB

+9
Testing IMP.pdf10.59 MB

IDP CODES 👍👍
+2
IDP CODES 👍👍

Previous Wiley edge exam proof join 👇👇 https://t.me/+xe-m30w_qotkYzI1 💯% clearance given for WILEY EDGE ✅

Those who have WILEY Edge Exam join 👇👇 https://t.me/coding_solutions_all