Aman Singh Rawat
Aman Singh Rawat
  • 16
  • 507
2 Keys Keyboard using DP
problem link -leetcode.com/problems/2-keys-keyboard/description/
มุมมอง: 16

วีดีโอ

POTD - minimum swaps to group all 1 together II
มุมมอง 89หลายเดือนก่อน
problem link -leetcode.com/problems/minimum-swaps-to-group-all-1s-together-ii/description/?envType=daily-question&envId=2024-08-02
Binary Exponentiation Leetcode Problem
มุมมอง 30หลายเดือนก่อน
problem link- leetcode.com/problems/powx-n/description/
POTD Sort the jumbled numbers
มุมมอง 13หลายเดือนก่อน
problem link -leetcode.com/problems/sort-the-jumbled-numbers/description/?envType=daily-question&envId=2024-07-24
Leetcod weekly contest 407 , 3 problems solved
มุมมอง 14หลายเดือนก่อน
Leetcod weekly contest 407 , 3 problems solved
POTD find valid matrix given row and column sum
มุมมอง 29หลายเดือนก่อน
PROBLEM LINK -leetcode.com/problems/find-valid-matrix-given-row-and-column-sums/description/?envType=daily-question&envId=2024-07-20
POTD Binary Tree
มุมมอง 24หลายเดือนก่อน
problem link -leetcode.com/problems/step-by-step-directions-from-a-binary-tree-node-to-another/description/
POTD Robot Collisions
มุมมอง 38หลายเดือนก่อน
problem link - leetcode.com/problems/robot-collisions/description/?envType=daily-question&envId=2024-07-13
POTD Maximum Score after removing Substring
มุมมอง 62หลายเดือนก่อน
problem link leetcode.com/problems/maximum-score-from-removing-substrings/description/?envType=daily-question&envId=2024-07-12
containers with most water
มุมมอง 282 หลายเดือนก่อน
problem link - leetcode.com/problems/container-with-most-water/
Minimum Time to Complete Trips
มุมมอง 192 หลายเดือนก่อน
problem link - leetcode.com/problems/minimum-time-to-complete-trips/description/
leetcode problem of the day crawler log folder
มุมมอง 152 หลายเดือนก่อน
problem link leetcode.com/problems/crawler-log-folder/description/?envType=daily-question&envId=2024-07-10
problem of the day leetcode average waiting time
มุมมอง 542 หลายเดือนก่อน
problem link - leetcode.com/problems/average-waiting-time/editorial/?envType=daily-question&envId=2024-07-09
THE BOYS (WATCH TILL END)
มุมมอง 27ปีที่แล้ว
#youtubechannel #youtube #youtuber #youtubers #subscribe #youtubevideos #sub #youtubevideo #like #instagram #follow #video #vlog #subscribetomychannel #gaming #music #explorepage #love #smallyoutuber #vlogger #youtubegaming #instagood #gamer #youtubecommunity #likes #explore #youtubelife #youtubecreator #ps #bhfyp.#funnyvideo #funny #funnyvideos #memes #funnymemes #meme #comedy #funnymeme #tikt...
reflexes
มุมมอง 13ปีที่แล้ว
reflexes

ความคิดเห็น

  • @rawatjienergy2542
    @rawatjienergy2542 หลายเดือนก่อน

    Super

  • @rawatjienergy2542
    @rawatjienergy2542 หลายเดือนก่อน

    Good

  • @rawatjienergy2542
    @rawatjienergy2542 หลายเดือนก่อน

    Good

  • @AmanSinghRawat-ug6fr
    @AmanSinghRawat-ug6fr หลายเดือนก่อน

    //code struct da{ int pos; int health; char dir; int idx; }; class Solution { public: vector<int> survivedRobotsHealths(vector<int>& posi, vector<int>& he, string dd) { int n = posi.size(); vector<da>a(n); for(int i=0; i<n ;i++){ a[i].pos = posi[i]; a[i].health = he[i]; a[i].dir = dd[i]; a[i].idx = i; } sort(a.begin() , a.end() ,[&](auto a, auto b){ return a.pos <b.pos; } ); stack<int>st; for(int i=0; i<n ;i++){ if(a[i].dir=='R'){ st.push(i); } else if(a[i].dir=='L'){ while(!st.empty() && a[st.top()].dir=='R' && a[i].health >0){ int x= a[st.top()].health; int y = a[i].health; if(x==y){ a[st.top()].health =0; a[i].health=0; st.pop(); } else if(x>y){ a[st.top()].health-=1; a[i].health =0; } else{ a[st.top()].health=0; a[i].health-=1; st.pop(); } } } } vector<int>res; sort(a.begin() ,a.end() , [&](auto a, auto b){ return a.idx < b.idx ; }); for(int i=0; i<n ;i++){ if(a[i].health >0){ res.push_back(a[i].health); } } return res; } }; although you will be finding better code than this which will only need one time sorting and is available on leetcode editorial

  • @rawatjienergy2542
    @rawatjienergy2542 2 หลายเดือนก่อน

    Super Aman, Very good 👍👍👍

  • @AmanSinghRawat-ug6fr
    @AmanSinghRawat-ug6fr 2 หลายเดือนก่อน

    //code class Solution { public: int maximumGain(string s, int x, int y) { string s1="ab"; string s2 ="ba"; if(x<y){ swap(s1,s2); swap(x,y); } stack<char>st; int score=0; for(auto ch : s){ if(st.empty()){ st.push(ch); } else{ if( st.top()==s1[0] && ch == s1[1]){ score+=x; st.pop(); } else{ st.push(ch); } } } string temp; while(!st.empty()){ temp.push_back(st.top()); st.pop(); } reverse(temp.begin() , temp.end()); for(auto ch : temp){ if(st.empty()){ st.push(ch); } else{ if(st.top()==s2[0] && ch==s2[1]){ score+=y; st.pop(); } else{ st.push(ch); } } } return score; } };

  • @HarishSharma-hm3bu
    @HarishSharma-hm3bu ปีที่แล้ว

    Bhaiya maine aaj newspaper mai ad dekhi Graphic Hill University ke placement ki to plz aap thoda review de skte ho umne kitni reality h aur cse mai total kitne students h specialisation milake aur kitne place hue avg package ky tha aur highest package on campus tha ya of campus plzz bhaiya tym nikale thoda btana ❤

    • @AmanSinghRawat-ug6fr
      @AmanSinghRawat-ug6fr 2 หลายเดือนก่อน

      Bhai sorry dekha nahi le liya kya admission agar nahi liya to batata hu

  • @katietate3084
    @katietate3084 ปีที่แล้ว

    Promo-SM 😑

  • @rawatjienergy2542
    @rawatjienergy2542 ปีที่แล้ว

    Good

  • @savitarawat1396
    @savitarawat1396 ปีที่แล้ว

    👌👌👌👌