3 Sum | Brute, Better & Optimized Approach with Codes | Leetcode 15

Поделиться
HTML-код
  • Опубликовано: 13 янв 2025

Комментарии • 124

  • @riyansh_0019
    @riyansh_0019 2 месяца назад +52

    *"मां सरस्वती जल्द ही सभी के सपनों को पूरा करे,,❤❤😊..!!*

  • @riyansh_0019
    @riyansh_0019 2 месяца назад +32

    *"ओम नमो भगवते वासुदेवाय नमः,,❤❤😊....!!!*

  • @naniscrazychannel537
    @naniscrazychannel537 2 месяца назад +10

    Starving for your dsa videos❤

  • @Shaswat_Shrivas
    @Shaswat_Shrivas 2 месяца назад +3

    Lecture completed! This problem took me much longer to solve than the others. Thank you, ma'am, for making it easy and understandable.

  • @UmairJaved-m6e
    @UmairJaved-m6e 2 месяца назад +12

    ap ki vedio bohat achi hoti ha bohat hi jaldi samaj ha a jati ha

    • @Ravi-vr3xc
      @Ravi-vr3xc 2 месяца назад

      Yes

    • @HiddenKnowledge-mw1bn
      @HiddenKnowledge-mw1bn 23 дня назад

      so what?

    • @Ravi-vr3xc
      @Ravi-vr3xc 23 дня назад

      @@HiddenKnowledge-mw1bn so what kya hota h pdai karle, varna yhi bolta betha rhega, achi bat smjh nhi aati tumko

  • @MayanCoding
    @MayanCoding 2 месяца назад +12

    Excellent explain ma'am ji ❤

  • @himanshukumar7466
    @himanshukumar7466 Месяц назад +2

    Lecture 38 completed on 29 Nov 2024 ❤Loved the Hashing Approach

  • @Rajakumar29sep
    @Rajakumar29sep Месяц назад +2

    Thankyou ✨Complete ✨

  • @RASHIVishwakarma-p5g
    @RASHIVishwakarma-p5g 14 дней назад

    completed by lecture 39
    thankyou mam
    😍

  • @whatshortacrap7797
    @whatshortacrap7797 Месяц назад

    12:50
    Since the set maintains uniqueness and sorting ensures consistency, the if check is redundant ig?

  • @ShivamVermaokdone
    @ShivamVermaokdone День назад

    Mam,, i found unnecessary usage of variable target;
    target = -a
    and c = target - b
    while its simple
    c = -a-b
    => c = -(a+b)
    By the way thanks for amazing lectures!!

  • @ganeshjaggineni4097
    @ganeshjaggineni4097 9 дней назад

    NICE SUPER EXCELLENT MOTIVATED

  • @akshay.ppvvtt
    @akshay.ppvvtt 25 дней назад +1

    agar set use kiya he toh find kya karne ki zarurat dirct insert kar sakte he na maam !

  • @PrashChandra71
    @PrashChandra71 2 месяца назад +1

    Done Today's Lecture❤

  • @MayanCoding
    @MayanCoding 2 месяца назад +4

    I am first person who is complete watch this video ❤

  • @AkankshaPawar-p7g
    @AkankshaPawar-p7g Месяц назад +1

    Completed 👍

  • @asnighoshdastider1971
    @asnighoshdastider1971 Месяц назад +1

    Thank you so much!!!
    😁

  • @growtogether8014
    @growtogether8014 2 месяца назад

    Step1: find the unique combinations of triplet.
    Step2: add each triplet, if it returns 0 add it to result.

  • @ssk4875
    @ssk4875 26 дней назад

    lec completed today 👍

  • @CineCrave_Sriese-t6e
    @CineCrave_Sriese-t6e Месяц назад

    lecture complete👍👍

  • @azharalibhutto1209
    @azharalibhutto1209 2 месяца назад

    Thank you for DSA

  • @ky-rajput
    @ky-rajput 2 месяца назад +3

    Shadra Didi really appreciate your efforts for making us ❤️‍🩹 professional level coder

  • @ayushburde1
    @ayushburde1 Месяц назад +1

    interesting thaa , but has anyone thought why we are not checking the same elm for K ?? I just checked it out on GPT

  • @earthlinkdesignersedtech3531
    @earthlinkdesignersedtech3531 Месяц назад

    completed lecture - 38 💪🔥 - WAITING FOR SHRADHA DIDI TO LIKE MY COMMENTS

  • @SagarMaheshwariS
    @SagarMaheshwariS 2 месяца назад

    Day 38 completed ✅

  • @jyothiradithyag787
    @jyothiradithyag787 День назад +1

    12th Jan

  • @rockygaming3663
    @rockygaming3663 Месяц назад +2

    In optimised soln what if the question was to return thr indices of the array that add upto the sum

    • @NidhishAbraham
      @NidhishAbraham 21 день назад

      Sort the array, but we also need to keep track of the original indices of the elements.
      Create an array of pairs (value, index) to track the original indices.

  • @Shortedit-o5f
    @Shortedit-o5f 2 месяца назад

    Completed!

  • @nabin-x4f
    @nabin-x4f 2 месяца назад

    Completed on November 14 2024, 10:28pm.

  • @Glorytroly9092
    @Glorytroly9092 2 месяца назад +1

    It would be great if..
    1]Please launch a course On DATA SCIENCE AND ML
    2]Also MORE VIDEOS on Python ....

  • @kevalkanpariya
    @kevalkanpariya Месяц назад

    Why the optimal solution is having T.C. n^2 + nlogn and not order of n? That means we can't optimise it further?

  • @ArchanaVishwakarma-zs7qm
    @ArchanaVishwakarma-zs7qm 2 месяца назад +1

    Thank you didi

  • @DIBYENDU_MALLICK
    @DIBYENDU_MALLICK 2 месяца назад +1

    Complete ✅

  • @Intelli_Jayant
    @Intelli_Jayant 2 месяца назад

    completed ❣️

  • @luck-i6x
    @luck-i6x 2 месяца назад +1

    Hello bahen
    Mera aek question he
    Kya biology vale student DATA SCIENTIST ban sakte he kya

  • @salmanmehmood470
    @salmanmehmood470 2 месяца назад +1

    Nice 🙂

  • @kathanzula1973
    @kathanzula1973 2 месяца назад

    If outer loop is running till end and inner loops are 1+ the outer indexs at i =n-1 ,j = n giving a segment fault why did you not get it

  • @theravi__01
    @theravi__01 25 дней назад

    Mam agar vo custom hash likhana hota to kya h vo unordered set k liye??

  • @Soumyadeep_Chakraborty1
    @Soumyadeep_Chakraborty1 Месяц назад

    Day 39 ✅

  • @BabuSaurya9
    @BabuSaurya9 2 месяца назад +2

    My first comment 🎉

  • @vedictechyog
    @vedictechyog 2 месяца назад

    very nice!

  • @Prince_Yadav137
    @Prince_Yadav137 2 месяца назад +2

    Online MCA ka kya scope h

  • @Prince_Yadav137
    @Prince_Yadav137 2 месяца назад

    Online MCA+skills full stack development with Sigma 4.0 vs offline regular MCA which is best?

  • @abrarbinarafat
    @abrarbinarafat 2 месяца назад +1

    ma'ma🥰🥰🥰🥰

  • @sandeepmehta-e9l
    @sandeepmehta-e9l 2 месяца назад

    Attendance - Shiv is present Didi 😇🥰☺

  • @SHAILESHRAUT-MH22.
    @SHAILESHRAUT-MH22. 2 месяца назад +1

    Man bsc it lecture please ❤❤

  • @Lucy-mixup
    @Lucy-mixup 2 месяца назад

    Didi me python learn kr rha hu so ye dsa ki series ko padhu ya nhi

  • @shwetakumari1002
    @shwetakumari1002 Месяц назад

    lecture 38 completed on 1st dec

  • @LeetCode-Satish
    @LeetCode-Satish 2 месяца назад +2

    1st comment😊

  • @Glorytroly9092
    @Glorytroly9092 2 месяца назад

    Please launch a course On DATA SCIENCE AND ML
    Also MORE VIDEOS on Python ....

  • @UmairJaved-m6e
    @UmairJaved-m6e 2 месяца назад

    please make also vedio about web scraping streamlit in and all related this in python

  • @singhroshan-tw5eq
    @singhroshan-tw5eq 2 месяца назад +2

    😊😊😊😊

  • @chandramauleshwarupadhyay3160
    @chandramauleshwarupadhyay3160 Месяц назад

    Nov 23♥️♥️

  • @shushil-lYadav9
    @shushil-lYadav9 2 месяца назад +2

    ❤❤❤

  • @ShivamVermaokdone
    @ShivamVermaokdone День назад

    present mam

  • @ahmadullah3148
    @ahmadullah3148 2 месяца назад

    Mam I m really wanted to access your web development course but mam pak vs India rivalry make much trouble for me😊, I can't send course fee to you through any platform

  • @Nightmare39039
    @Nightmare39039 2 месяца назад

    Sis please help me.... How I dual boot blackarch linux and windows 11.... Without using a virtual box.... In my pc I am using windows 11... But I also want to use black arch.... But how I manually change from one operating system to another......

    • @NidhishAbraham
      @NidhishAbraham 21 день назад

      To switch between Windows 11 and BlackArch (or any other Linux distribution) on your PC, you can set up a dual boot system. A dual boot allows you to install both operating systems on the same computer and choose which one to boot into when you start up the PC.

  • @pushpendrasingh9841
    @pushpendrasingh9841 Месяц назад

    hey guys is there any Notes of these lectures

  • @Sunnychaudhary5609
    @Sunnychaudhary5609 2 месяца назад

    done mam

  • @chaitanyakhare1869
    @chaitanyakhare1869 Месяц назад

    completed 13 Dec

  • @Simple_learn123
    @Simple_learn123 2 месяца назад +1

    Brute force wala set part Java me kaise implement hoga?? What is set anyone

    • @NidhishAbraham
      @NidhishAbraham 21 день назад +1

      Set result = new HashSet();
      // Store the indices of the triplet in the result set
      List triplet = new ArrayList(Arrays.asList(i, j, k));
      Collections.sort(triplet); // Sort to avoid different permutations of same triplet
      result.add(triplet);

  • @subhadipchakraborty9490
    @subhadipchakraborty9490 2 месяца назад

    Mam plz teach dsa with python also

  • @Keshriruhi5643
    @Keshriruhi5643 2 месяца назад

    Di plz makes video of c language

  • @Nick_margaj
    @Nick_margaj Месяц назад +1

    Vote for laptop guide
    👇🏻

  • @Daminifashion_21
    @Daminifashion_21 2 месяца назад

    Ai course And ML Course kab ayega

  • @Ak_YouTube_creater
    @Ak_YouTube_creater 2 месяца назад

    Thik hai

  • @VERTBHAI.07
    @VERTBHAI.07 2 месяца назад

    Didi AMD Ryzen or Intel core me se konsa processor accha hai

  • @SonuKumar701
    @SonuKumar701 2 месяца назад

    Which programming language is so popular comment down below 👇

  • @kiransoni8712
    @kiransoni8712 2 месяца назад

    Day 39 13/11/24 😊

  • @UmairJaved-m6e
    @UmairJaved-m6e 2 месяца назад

    and AI agents Api handling in python

  • @PRASHANTSHRINGI
    @PRASHANTSHRINGI Месяц назад

    Done

  • @Keshriruhi5643
    @Keshriruhi5643 2 месяца назад

    Di BCA me maths kaise pdhe

  • @nikitasharma7209
    @nikitasharma7209 20 дней назад

    43:12 😂

  • @SaurabhKumar-ki7cs
    @SaurabhKumar-ki7cs Месяц назад

    done

  • @kushalt2727
    @kushalt2727 2 месяца назад

    First view and 1st comment

  • @yasharya8457
    @yasharya8457 5 дней назад +1

    who came up with the name of the question 💀💀

  • @ajmatclub5023
    @ajmatclub5023 2 месяца назад

    Hello ma'am

  • @TroLL_fusio9
    @TroLL_fusio9 10 дней назад

    3 sum in coding 🎉
    3 sum on google 💀🌚

  • @ganeshgiri-pb3cq
    @ganeshgiri-pb3cq 2 месяца назад

    Fast subscribe ❤❤

  • @ApurvSahu-s4m
    @ApurvSahu-s4m 2 месяца назад

    completed 11/12/2024

  • @rks1924
    @rks1924 Месяц назад

    i thought it is something else 3-SUM

  • @gouravraghuwanshi5422
    @gouravraghuwanshi5422 Месяц назад

    Bhai 3some 🙂

  • @ashu.abhi24
    @ashu.abhi24 2 месяца назад

    Shouldn’t O(nlogn + n^2) ≈ O(n^2) as for large n , n^2>> nlogn

    • @NidhishAbraham
      @NidhishAbraham 21 день назад

      O(n log n + n^2) for large 𝑛, and the overall time complexity of the optimized 3Sum solution is O(n^2).

  • @VarunJain-ii1mn
    @VarunJain-ii1mn 2 месяца назад

    Completed

  • @ujjwalsharma5663
    @ujjwalsharma5663 Месяц назад

    present

  • @Akshatai
    @Akshatai 2 месяца назад +1

    First comment ❤

  • @Goldy-w3z
    @Goldy-w3z Месяц назад +1

    15/11/2024
    lecture 38 completed!

  • @kashishjuneja5214
    @kashishjuneja5214 20 дней назад

    24/12/24

  • @shoibakhtarsid
    @shoibakhtarsid 2 месяца назад

    java me code karo didi

  • @uditvarshney3653
    @uditvarshney3653 Месяц назад

    Bhai plz problems ke naam aise mat rakha karo

  • @tejavathanil8194
    @tejavathanil8194 2 месяца назад

    Hii madam

  • @FinanceFactFinder
    @FinanceFactFinder 2 месяца назад

    Please mam, upload all these videos for Java language.

  • @MayanCoding
    @MayanCoding 2 месяца назад +2

    Support me

  • @abrarbinarafat
    @abrarbinarafat 2 месяца назад

    while(j

  • @riturajagnihotri8145
    @riturajagnihotri8145 2 месяца назад

    🙌🫸🫷🙏

  • @Oggy-com
    @Oggy-com 2 месяца назад

    Didi hello

  • @RajAryan-n8k
    @RajAryan-n8k Месяц назад +1

    You thought we thought but no one taking about it mam lines threesome 😁

  • @StoicBrahman
    @StoicBrahman День назад

    3sum💀

  • @sagardubey9807
    @sagardubey9807 2 месяца назад +1

    Hello, l am watching your videos in first time , can l get your num..... 😅😊😊

  • @AdityaSrivastava-ig5nx
    @AdityaSrivastava-ig5nx 2 месяца назад

    First