Leetcode 2401. Longest Nice Subarray | Weekly Contest 2401.

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ก.ย. 2022
  • Use coupon ALISHA on any GeeksforGeeks course to get 10% discount:
    practice.geeksforgeeks.org/co...
    Connect with me on LinkedIn : / alisha-parveen-80579850
    Check out our other playlists:
    Dynamic Programming:
    • Dynamic Programming
    Trees:
    • Trees
    Heaps and Maps:
    • Heaps and Maps
    Arrays and Maths:
    • Arrays and Maths
    Bit Manipulation:
    • Bit Manipulation
    Greedy Algorithms:
    • Greedy Algorithms
    Sorting and Searching:
    • Sorting and Searching
    Strings:
    • Strings
    Linked Lists:
    • Linked Lists
    Stack and Queues:
    • Stacks and Queues
    Two Pointers:
    • Two pointers
    Graphs, BFS, DFS:
    • Graphs, DFS, BFS
    Backtracking:
    • Backtracking
    Non- DSA playlists:
    Probability:
    • Probability
    SQL-Basic Join functions:
    • SQL - Basic JOIN Funct...
    SQL-Basic Aggregate functions:
    • SQL-Basic Aggregate Fu...

ความคิดเห็น • 46

  • @probabilitycodingisfunis1
    @probabilitycodingisfunis1  ปีที่แล้ว +7

    Link to problem : leetcode.com/contest/weekly-contest-309/problems/longest-nice-subarray/
    Code:
    int num = 0;
    int j =0;
    int ans = 0;
    for(int i=0;i

  • @kwakukusi4094
    @kwakukusi4094 ปีที่แล้ว +12

    your explanation is by far the best i've seen on youtube. I am midway through the video and I am confident I can now solve the problem

  • @sahilanand30
    @sahilanand30 ปีที่แล้ว +7

    Keep making lc contest editorials
    Its immensely useful in upsolving

  • @tataotp3559
    @tataotp3559 5 หลายเดือนก่อน +1

    legendary explaination.
    Beauty with brain.

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

    Brilliantly explained Sister. @11:00.

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

    Best and Clear Explanation So far on youtube .

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

    thank you very nicely explained.

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

    It's really nice solution, i found it very helpful.

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

    Perfect explanation!! Thanks

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

    Best Explanation Thank's lot for doing.....

  • @hitabratanath305
    @hitabratanath305 ปีที่แล้ว +1

    Hey alisha,
    The explanation was really good. Really appreciate the work that you are doing.

  • @sahil_0
    @sahil_0 ปีที่แล้ว +1

    your method of teaching is awesome.
    Keep doing.

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

    ur explanation make this ques more beautiful

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

    Your explanation is always awesome

  • @shubamgoswami
    @shubamgoswami ปีที่แล้ว +2

    Didi loved this problem just see the excitement in the video best explanation till now ❤ i think u like bit manipulation 😂 but i just hate it 🌚

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

    the best. made me subscribe!

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

    This the best explanation , Intuitive

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

    Thank you very much🙏🙏

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

    Awesome explanation!
    You earned a subscriber

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

    very cool, short and precise solution.

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

    Nice and clear explanation :). Thank you (y)

  • @ShivamVerma-tx2gz
    @ShivamVerma-tx2gz ปีที่แล้ว

    wonderful explanation !

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

    Good explanation. Love it

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

    great Explanation

  • @NaveenKumar-os8dv
    @NaveenKumar-os8dv ปีที่แล้ว +1

    nicely explained, that set bit part, the number has set bits of both 3 and 8, that was the tricky part to do which made this problem harder.

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

    very nice explanation

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

    mam you really give most optimal solution and explanation with drawing is also very good...👍

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

    thanks

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

    Great Explanation Mam 😃

  • @nishantraut90
    @nishantraut90 ปีที่แล้ว +1

    thank you, it really helps in upsolving

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

    What a explaination !!!! 😎😎😎

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

    Amazing explanation!

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

    did you solve everry question of leetcode weekly and biweekly

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

    I'm learning tNice tutorials, guitar, and 3d animation at the sa ti what am i doing to myself?

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

    Sa. TNice tutorials quarantine is making question my whole existence.

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

    great explanation dii , 😒i got TLE using brute

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

    i have been waiting for this video

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

      Why u were waiting u can't try

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

      @@reshmaparveen6679 i did but i was just waiting for explanation as they so clear

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

    leet code added some test cases, so use long long for num to get it accepted. BTW thanks Alisha

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

    would u marry me