Lecture 24: Search in a Rotated Array | Peak index in a Mountain Array | Kth Missing Positive Number

Поділитися
Вставка
  • Опубліковано 26 січ 2025

КОМЕНТАРІ • 278

  • @CoderArmy9
    @CoderArmy9  Рік тому +164

    Hello Coder, Sab chamak rha hai?

  • @Jv_Singh37
    @Jv_Singh37 4 місяці тому +3

    00:01 Find Minimum in Rotated
    18:05 Peak Index
    1:04:55 Kth Missing

  • @focusedstudy7194
    @focusedstudy7194 11 місяців тому +10

    love you bhaiya chije tough he par laga rahunga aur acche se mehnat karunga aur seekhunga aap se pata ni kyo ek relatability vali feeling aati he thanks for the course
    love you

  • @joydeep-halder
    @joydeep-halder Рік тому +7

    17:52 We can also write the statement in this way.
    mid = end - (end-start)/2; which looks more similar and easy to remember as
    mid = start + (end-start)/2

    • @AbhishekKumar-ks1fd
      @AbhishekKumar-ks1fd Рік тому +2

      why mid=start+(end-start)/2 giving error and mid=end+(start-end)/2 not giving error?In both case mid evaluates to zero and also in both cases ig there is no overflow according to condition given in question..

    • @adeebahmed1891
      @adeebahmed1891 Рік тому +7

      @@AbhishekKumar-ks1fd if we use mid=start+(end-start)/2 then it will move to 0th index if the required element is present at index 1 .and if we use mid=end+(start-end)/2 then it will move to 1st index for which we can compare the previous element arr[mid-1] which is not the case if we use mid=end+(start-end)/2 .for better understanding
      dry run this case [1,9,5,3,2].

    • @therealsumitshah
      @therealsumitshah Рік тому +1

      @@adeebahmed1891 how will I get to know where to use mid=start+(end-start)/2 and where to use mid=end+(end-start)/2;

    • @_HindiFacts
      @_HindiFacts Рік тому +5

      ​@@therealsumitshah it is a better approach. We generally use end+(start-end) /2 . We can use it everywhere.

  • @Nishad_Ranade1729
    @Nishad_Ranade1729 Рік тому +8

    Simple brutforce approch:
    for(int i=0;i

    • @collegelife7800
      @collegelife7800 5 місяців тому

      leetcode ke 2nd test case prr fail ho jyga

    • @aryyann05
      @aryyann05 4 місяці тому

      what is n here?

    • @aryyann05
      @aryyann05 4 місяці тому

      @@collegelife7800 yeh vala try kro, fail nhi hoga,
      class Solution {
      public:
      int findKthPositive(vector& arr, int k)
      {
      int i = 0, num = 0;
      while(k != 0)
      {
      num++;
      if(i < arr.size() && arr[i] == num)
      {
      i++;
      }
      else //arr[i] != num
      {
      k--;
      }
      }
      return num;
      }
      };

  • @karankumar3983
    @karankumar3983 Рік тому +7

    0:0 q1 ,13:26 it's code,18:06 q2 39:35 it's code ,42:45 q3 1:00:34 it's code,1:04:54 q4 1:24:16 it's code and questions description se dekh lena

  • @Yogesh_Singh_1350
    @Yogesh_Singh_1350 9 місяців тому +7

    hello bhaiya. Thank you for your efforts.
    {17:25 bhaiya agar hum es code ka use kare tho hume mid value m koi change kare ki jarurat nhai padegi. }
    int s=0,e=arr.size()-1;
    int mid ;
    while(sarr[mid-1]){
    s=mid+1;
    } else{
    e=mid;
    }
    }
    return -1;

    • @Billy-gd1rm
      @Billy-gd1rm 4 місяці тому

      Bhai bhaiya ke rotated array mein dikkat aa rhi hn answer galat aa rhe hn

  • @jatinteotia0767
    @jatinteotia0767 Рік тому +6

    Superb bhaiya the way you are teaching is so unique

  • @joydeep-halder
    @joydeep-halder Рік тому +15

    My intuition behind ans + K : ✅✅
    We found that in the array before ans index, there are total ans elements present currently.
    And we know there are at least K elements missing
    It means that, before that ans index there should be total at least (ans + k) elements .
    Let's take example of the question:
    [2,3,4,7,11,12] , we found that before index 4th, there are total 4 elements.
    Now, we also know that there are at least 5 elements missing before 4th index.
    so at least total elements before index 4th = 4 elements + at least 5 missing elements = at least 9 elements.
    And we know that 9th element is basically 9 (which is missing)
    (NOTE: In this case total 6 elements missing before index 4, so total elements before 4 would be = 4 + 6 = 10), so 9th element is 9, 10th is 10)

  • @atifmalik8012
    @atifmalik8012 3 місяці тому

    19:05
    class Solution {
    public:
    int findMin(vector& nums) {
    if(nums[0]

  • @rhitam_biswas
    @rhitam_biswas 5 місяців тому +4

    August 5 : Revision Day 5
    Questions on binary search done ✅✅✅
    (BTW Last question is still little bit tough 😅😅)

  • @omsagar4417
    @omsagar4417 11 місяців тому

    ye search in rotated array ke question mai bahut din se fasa hua tha. paid course wale ka samaz hi nahi aa raha tha. lekin jab aapke video se dekha to pura logic clear ho gaya.
    thank you for making dsa easy

  • @shrivvlogs6045
    @shrivvlogs6045 Рік тому +2

    Best explanation for search in sorted roated array easiest approach till I seen

  • @maroofgpm
    @maroofgpm Рік тому +1

    17:44 reason simple hai.
    If you are using comparision for arr-> mid with arr->mid-1.
    use mid = end + (start - end ) /2
    If you are using comparision for arr-> mid with arr->mid+1.
    use mid = start + (end - start) /2
    it depends on your way of writing code.
    ******* Now for the dry run part on : arr [1,6,3,2,1].
    sir Used mid = start + (end - start) /2,
    but used the mid-1 for comparision,
    so for Start = 0, and end = 1.
    mid = 0, now if we try to compare mid with mid -1 , which was accessing the index -1. we got error.

    • @shrutigawade8747
      @shrutigawade8747 10 місяців тому

      But for example , 2 3 5 4 1 0 , if we write the else if condition as arr[mid] >arr[mid+1] , then end = mid -1 ....then we get error . please check

    • @Educate-Advise-Zone
      @Educate-Advise-Zone 6 місяців тому

      ​​@@shrutigawade8747it will not reach else ifpart
      it will return mid as peak value i think🤔as first condition will get true..

  • @atifmalik8012
    @atifmalik8012 3 місяці тому +1

    1:35
    class Solution {
    public:
    int peakIndexInMountainArray(vector& arr) {
    int start = 0,end = arr.size()-1,mid;
    while(startarr[mid-1] && arr[mid] > arr[mid+1])
    return mid;
    else if(mid!=arr.size()-1 && arr[mid+1]>arr[mid])
    start = mid+1;
    else
    end = mid-1;
    }
    return start;
    }
    };

  • @AmbeDevi-tt1yd
    @AmbeDevi-tt1yd Місяць тому

    At 17:45 if array is 1 2 3 6 1 mid =4+(3-4)/2=4 for(6,1) then for last 1 we have to check for right but this time it should also give us error...so??

  • @deeprajsengar4081
    @deeprajsengar4081 10 місяців тому +5

    Funny part of video is that kth missing wala code easy category me hai (waah re leetcode) 😂 1:30:24

    • @VivekSingh-hn4xr
      @VivekSingh-hn4xr 9 місяців тому +1

      😂😂😂😂sahi kha use smjhne mai medium questions se jyada smay lga 😭

    • @deeprajsengar4081
      @deeprajsengar4081 9 місяців тому +1

      @@VivekSingh-hn4xr real 🥲

    • @dontreadmybanner2002
      @dontreadmybanner2002 4 місяці тому +1

      ​@@VivekSingh-hn4xrbhai dimag kharab ho gaya

  • @RiteshKumar-hs3it
    @RiteshKumar-hs3it Рік тому +15

    abb mental pressure badh raha h question ki difficulty aur variation k sath kal ki claas ke quesions ko khud se debug krne m 3 ghnte extra lage taki cheeje mentally accept ho jaye 🥲

    • @anubhavthakur3644
      @anubhavthakur3644 8 місяців тому

      Same bhai😢

    • @tusharagarwal5306
      @tusharagarwal5306 7 місяців тому

      Yeh saare bohot hi simple questions hai, agar yeh bhi tumhe difficult lagg rahe hai toh tumhara basics clear nahi hai, ek baar binary search doobara se padho, different cheeze try karo code me like returning s or e in the end, etc.
      Ek baar binary search samajh gaye toh yeh questions bohot easy lagengi.

    • @rishabhshenoy3258
      @rishabhshenoy3258 7 місяців тому +2

      ​@@tusharagarwal5306 i agree ye easy hai par ye approach ko aane ke liye practice lagega

    • @dontreadmybanner2002
      @dontreadmybanner2002 4 місяці тому +1

      @tusharagarwal5306 bro easy hoo ya difficult easy bolke agge niklo ge too mushkil hai question samj ne ki baad bhi ek baar khud se dryrun karo

  • @ManjuBala-vf9ni
    @ManjuBala-vf9ni 5 місяців тому

    1:00:01 i am confuse in the else if condition ,in the previous example the value of [arr[mid] >= arr[0] ] this condition was not true so how can this code further proceed ?

  • @Sajal_Mallick_vlogs
    @Sajal_Mallick_vlogs 10 місяців тому +1

    Day 32 done and dusted..... Crytal clear everything. Best Bhaiya.... consistency

  • @ManishKumar-d9b3j
    @ManishKumar-d9b3j 6 місяців тому +1

    Ram Ram rohit bhai abh kaafi bddiya samajh aa raha hai leetcode ke problems bhi solve kar paa raha hoon all thanx to your great effort to make us fall in love with DSA sab chamk raha hai ✅

  • @techmcu
    @techmcu 5 місяців тому

    40:10 and if array assigned discriminate orders then ?

  • @electricalengineer5540
    @electricalengineer5540 2 місяці тому +1

    class Solution:
    def findKthPositive(self, arr: List[int], k: int) -> int:
    start = 0
    end = len(arr) - 1
    while end >= start:
    mid = start + (end - start) // 2
    if arr[mid] - 1 - mid < k:
    start = mid + 1
    else:
    end = mid - 1
    return start + k

  • @palaksharma3310
    @palaksharma3310 6 місяців тому

    Literally you are a great teacher , so called overrated teachers can't teach like you brother ! ❤️

  • @satyamgurjar02
    @satyamgurjar02 Рік тому +1

    bhaiya video banana band mat karna bhut se log bhich me hi chod dete he aap please pura course complete kijiyega
    thankyou

  • @vishalpratapsingh6994
    @vishalpratapsingh6994 Рік тому +2

    We are getting motivated by seeing your effort bhaiya..

  • @newglobal2056
    @newglobal2056 Рік тому +2

    Bhaiya agar code share kar dete to bohot accha hota, thanks for your valuable content, love you

  • @firecrusher1384
    @firecrusher1384 Рік тому +1

    ajka class thora hardd tha but dry run karta karta samaj aa gya bhaiya thanks ..

    • @tusharsingh7927
      @tusharsingh7927 11 місяців тому

      Haan Bhai....Kth missing wala smj aaya ?

  • @raobrand5776
    @raobrand5776 Рік тому +1

    Please like and share this series with your friends whose not offered paid course ❤

  • @ankushladani496
    @ankushladani496 Рік тому +1

    Bahut tagda lecture tha bhaiya...❤💯🚀

  • @nitinverma_
    @nitinverma_ 7 місяців тому +6

    chalu late kiya par maza aara hai bhaiyaaaaaaaaaaa

  • @technologicalvivek7510
    @technologicalvivek7510 8 місяців тому +1

    Really very nice explanation.
    thanks for this type of amazing lectures.

  • @aditripathi05
    @aditripathi05 9 місяців тому +1

    Finally I found the best explanation for search in sorted array

  • @air1topped738
    @air1topped738 Рік тому +1

    Bhaiya will you cover dsa from basic to advance on UA-cam

  • @naeimsaifi1251
    @naeimsaifi1251 24 дні тому

    bhaiya DSA krne ka mn ni krta tha but apki videos dhk kr mzza aa rha hai or DSA b solve ho rha hai

  • @isha7372
    @isha7372 6 місяців тому

    17:52 ka samaj nahi aaya
    Whats the difference between start + (end-start)/2 and end +(start-end)/2 while calculating mid

  • @heetpatel3037
    @heetpatel3037 11 місяців тому

    Chamka par yeh vapis dekhna hoga best explanation k liye 👍🏻

  • @sumanthp4967
    @sumanthp4967 Рік тому +1

    Congratulations for 30k family members Rohit bhaai and CoderArmy family members 🎉

  • @GOATSOFFOOTBALL
    @GOATSOFFOOTBALL 9 місяців тому

    37:00
    1:03:24 third problem

  • @zafrul_islam
    @zafrul_islam 4 місяці тому

    16:19 bhaiya jb hum last pe pahuch rhe hai tb mera mid 1 ban ja rha hai isi wajah se error nahi aa rha hai
    start =0 , end =1
    mid = end + (start-end)/2 -> 1 + (0-1)/2 -> 1 - 1/2 -> 1
    isi wajah se hum arr[mid-1] wale element ko access kar pa rhe hai .
    bhaiya jb mai arr[mid+1] wale element ko access karne jaunga tb to error de dega na ye ????
    bhaiya please reply @CoderArmy9

  • @mattiullah318
    @mattiullah318 Рік тому +1

    hi rohit bro this videos is really help full for me thanks for this series

  • @coder-ut6eo
    @coder-ut6eo 7 місяців тому

    1:04:54 kth missing positive number

  • @yes-its-goliya
    @yes-its-goliya 7 місяців тому +5

    🏃‍♀Day 9✅
    tysm bhaiya

  • @-BCS-VarshaVaishnav
    @-BCS-VarshaVaishnav Рік тому +1

    32/180 done thanku bhaiya🙃

  • @Gyanendra012
    @Gyanendra012 10 місяців тому

    Q peak element
    class Solution {
    public:
    int peakIndexInMountainArray(vector& arr) {
    int n=arr.size();
    int start=0,end=n-1, mid=-1,index=-1;
    while(startarr[mid+1]){
    index=mid;
    end=mid-1;

    }
    else{
    start=mid+1;

    }
    }
    return index;
    }
    };

  • @abhi_coder6
    @abhi_coder6 Рік тому +1

    Bhaiya ek confusion h agar arrays ko sorted bolte h to it means ki arrays must be in increasing order 🤔🤔.

    • @CoderArmy9
      @CoderArmy9  Рік тому +1

      Nahi bhai, wo question mein given rhega sorted ka meaning, wo increasing ki baat kar rha hai ya decreasing ka

  • @baibamashu9926
    @baibamashu9926 Рік тому

    Bhaiya dout support ka kya hua!??
    Mene multiple times aa same chiz comment bhi ki different videos pe pr koi reply nhi aata.
    Mene subscription liya hua hai pr jo links aape provide kiya he bo khulte nhi or aap new link provide krbate nhi mene aase a aspect nhi kiya tha!

  • @Gauravgaming-g5
    @Gauravgaming-g5 26 днів тому

    bhaiya i got error in kth missing element for arr=[2] and k=1

  • @Coder-rohits
    @Coder-rohits Рік тому +1

    mazaa aa gaya bhaiya iss lecture se ekdam se babu wali feel ho gayi😂😂😂😂

  • @nilkanta1790
    @nilkanta1790 Рік тому

    doubt
    when to use ;- while(start

  • @hackerbhai4624
    @hackerbhai4624 Рік тому

    Your understanding find is very best
    Love you sir ❤❤

  • @ritikrajsinha5895
    @ritikrajsinha5895 Рік тому +1

    bahut bhadiya bhaiya 😀😀😀😀

  • @pranavsharma3655
    @pranavsharma3655 5 місяців тому +1

    this logic of rotated array for finding min. value is not working in {8,7,2,4} why ?

    • @Billy-gd1rm
      @Billy-gd1rm 4 місяці тому

      Pta chala bhai kyo nhi run ho rha please tell

  • @goindia777
    @goindia777 Рік тому +1

    Bhaiya last wala kth missing number thoda samajh nhi aaya

  • @Survival_oF_tHefiTtest
    @Survival_oF_tHefiTtest 11 місяців тому

    bhaya python mai to wo work nhi kar raha hai, lekin else statement mai right = mid karo to work karta hai

  • @aakarshshrivastava7277
    @aakarshshrivastava7277 11 місяців тому

    bhaiyaaa bht zada ache se smjh aa ra hai thank you

  • @Viivekray
    @Viivekray Рік тому +1

    Day 24 Completed ✅❤🎉

  • @aayushrajpurohit321
    @aayushrajpurohit321 9 місяців тому +1

    Badhiya rha ye session #Chamka

  • @captainajay8853
    @captainajay8853 Рік тому

    apne to DSA me aag laga diya , mast he

  • @tanishqdixit6313
    @tanishqdixit6313 Рік тому +1

    Day 32/180 completed

  • @ankushladani496
    @ankushladani496 Рік тому

    Done Bhaiya... 32/180 ✅

  • @raghavgupta-fk3fn
    @raghavgupta-fk3fn Рік тому

    @ rohit bhaiya 2d array kab karaoge

  • @LordSarcasticVlogger
    @LordSarcasticVlogger 6 місяців тому +3

    Watching from NIT Srinagar

  • @shahsaifi5885
    @shahsaifi5885 Рік тому

    Baap of all dsa teacher rohit negi❤

  • @shadikhusain1216
    @shadikhusain1216 Рік тому

    @Rohit bhai aap hume chamkaane mai mahnat pe lage ho humm market mai chamka denge. 🎉❤ ekdam dhaanshu ja raha h jise bolte hai dhaanshu. Bhai aapne sabb pay after placement bootcamp ke laga di hai achhe se 😂😂😂 aur jitne bhi high price unaffirdable inatituions ke laga di 😂😂😂😅😅😅😅❤❤❤. Rohit bhai coder-army family ki taraf se dil se saalam🙌🙏

  • @ankushladani496
    @ankushladani496 Рік тому

    Done Bhaiya... Day 32/180 ✅

  • @electricalengineer5540
    @electricalengineer5540 2 місяці тому +1

    ohhh bhaisaaab

  • @MohammedHasmi577
    @MohammedHasmi577 9 місяців тому

    Amazing explanation bro ❤❤

  • @riteshbhadana
    @riteshbhadana Рік тому

    peak index in mountain
    class Solution {
    public:
    int find_pivot(vectorv){
    int s=0, e=v.size()-1;
    int mid = (s+e)/2;
    while(s

  • @omyele9315
    @omyele9315 Рік тому +1

    Kth positive missing me test case fail error mar raha hai bhaiya. Aap ne submit hi nahi kiya 😢 or else you would have face same problem. Help someone.

    • @armywalabhai9617
      @armywalabhai9617 Рік тому

      No error n h bro

    • @omyele9315
      @omyele9315 Рік тому

      @@armywalabhai9617 Only one value in an array [2] ans suppose to be 1

    • @VivekSingh-hn4xr
      @VivekSingh-hn4xr 9 місяців тому

      Kha pr Bhai btaio mera toh run ho gya aur submit bhi

  • @generalknowledge45788
    @generalknowledge45788 Рік тому

    sir is like a magician

  • @mdtousif4668
    @mdtousif4668 Рік тому +1

    32 days completed ✅
    Day 32/180, #180daysofcode #180 hard

  • @rohitkr.6408
    @rohitkr.6408 Рік тому

    Day-32🔥 Completed
    #180daysofcode
    Covering backlogs

  • @mydiaryloves
    @mydiaryloves 10 місяців тому +2

    Thank you bhaiya.

  • @drlovephukn
    @drlovephukn Рік тому

    32/180 Day's full power full power ❤❤❤❤

  • @Himanshu_85-e2i
    @Himanshu_85-e2i Рік тому +2

    class Solution {
    public:
    int findPeakElement(vector& arr) {
    int start=0,end=arr.size()-1,mid;
    while(startarr[mid-1]&&arr[mid]>arr[mid+1] )
    return mid;
    else if(arr[mid]>arr[mid-1])
    start=mid+1;
    else
    end=mid-1;
    }
    return -1;
    }
    };
    // plz check anyone where is the mistake in this code i want to submit on the leetcode but it is not taking it is showint runtime error

  • @anilbillupati
    @anilbillupati Рік тому

    search in rotated array confusing bhiyya.but the lecture and efforts of you is good

  • @aayushrajpurohit321
    @aayushrajpurohit321 9 місяців тому +3

    Bhaiya I was solving a problem which I solved in O(n) time, but there was scope of improvement possible so I solved it in O(log n) time, but in Leetcode, GFG I lag in ms time and space do I need to work on improving that as well ???

    • @Piyush_sahu.1
      @Piyush_sahu.1 6 місяців тому +2

      Bro don't believe in that if you if you again submit your code after submitting it show different ms

  • @alokmishra2600
    @alokmishra2600 13 днів тому

    Sir please coa ka lecture bhi upload kr do 😭

  • @MohammedHasmi577
    @MohammedHasmi577 9 місяців тому +1

    int peakIndexInMountainArray(vector& arr) {
    int start=0,end=arr.size()-1,mid,ans=-1;
    while(startarr[mid-1] && arr[mid]>arr[mid+1])
    {
    ans = mid;
    break;
    }
    else if(arr[mid+1]>arr[mid])
    {
    start = mid ;
    }
    else{
    end = mid ;
    }
    }
    return ans;
    I have solved this question by my self thanks Bhai ❤

  • @GayatriShejule-o1k
    @GayatriShejule-o1k 19 днів тому

    Thank you so much sir🥰

  • @T1s_kashyap
    @T1s_kashyap 11 місяців тому

    Thankyou for 24 😊

  • @nilkanta1790
    @nilkanta1790 Рік тому

    Good morning 🌞🌞

  • @Shauryousee
    @Shauryousee 6 місяців тому +2

    okay so I've watched this one lecture for like 3-4 hours now and ab jake it has been finished
    now the important thing is ki aaj ke lec ka ek bhi ques khud se nahi hua;
    but still after you giving a simple kickstart dimaag daudne laga bhaiya
    thankyou for the lecture; _/\_

    • @CoderArmy9
      @CoderArmy9  6 місяців тому +1

      It's comletely fine bhai, focus on making notes and do revision

    • @Shauryousee
      @Shauryousee 6 місяців тому

      @@CoderArmy9 already done bhaiya!!

    • @dontreadmybanner2002
      @dontreadmybanner2002 4 місяці тому

      ​@@CoderArmy9almost 9 hours lagge sabhi questions samj aagaye even samja ne ke phele kuch questions samj aagaye par last vala bhot hard tha

  • @VishnuVardhan-fk5sy
    @VishnuVardhan-fk5sy Рік тому +1

    Rotated array min can be solved with same code of mountain problem for bottom element

  • @vedantsingh3095
    @vedantsingh3095 6 місяців тому

    Bhaiya DP k liye bhi series chahiye

  • @WorkIt-r7y
    @WorkIt-r7y 4 місяці тому +2

    Q.1 another condition
    int arr[] = {1,2,4,7,8,9,10,11,12,13,14,15,16,17,19,17,16,15};
    int n=sizeof(arr)/sizeof(arr[0]);
    int left = 0;
    int right = n - 1;
    int max=-1 , max_idx=-1;
    while (left max) {
    max=arr[mid];
    max_idx=mid;
    left = mid + 1;
    } else {
    right = mid - 1;
    }
    }
    cout

  • @AdityaSharma-ri2wz
    @AdityaSharma-ri2wz 7 місяців тому

    test case error aa raha hai [3,1] ka

  • @amanprajapati6301
    @amanprajapati6301 Рік тому

    bhaiya aapka solution to pura cristal clear ho ra he but mere dwara ni aa re logics
    bhaiya kya karu

    • @CoderArmy9
      @CoderArmy9  Рік тому

      Bhai as a beginner ye logic khud se aana tough hai, bas ye make sure karna is type ka question dubara choote na

  • @joydeep-halder
    @joydeep-halder Рік тому

    Good morning bhaiya ❤️❤️

  • @CHAUDHARY_PRAYAS
    @CHAUDHARY_PRAYAS Рік тому +2

    #32 out of 180

  • @AMITKUMAR-ds4hp
    @AMITKUMAR-ds4hp Рік тому

    Good morning boss ❤

  • @DesiMrBean7
    @DesiMrBean7 Рік тому

    Good morning negi bhai❤️

  • @soumyadeepghosh4428
    @soumyadeepghosh4428 Рік тому

    vaiya Find Minimum in Rotated Sorted Array iye question thoda samjh nhi aaya !

  • @atifmalik8012
    @atifmalik8012 3 місяці тому

    43:06
    //solved it at my own without watching the video
    //The code looks little complex but it beats 100% users in time complexity
    class Solution {
    public:
    int rightSorted(int start,int val){
    if(val

  • @PravilaKumari-uv5be
    @PravilaKumari-uv5be Рік тому

    Good morning Bhaiya❤

  • @ashutosh4129
    @ashutosh4129 7 місяців тому

    Best teacher

  • @jiraiyagaming6491
    @jiraiyagaming6491 Рік тому

    Good morning 🌞

  • @pintuprusty9801
    @pintuprusty9801 Рік тому

    Thanks for motivating bhai❤

  • @AakashParvani
    @AakashParvani Рік тому

    Day 32 👍✅ Chamak Gaya