LeetCode in Java | Problem Solving in Arrays : Easy Question | Two Sum Problem

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

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

  • @ItachiGamer28
    @ItachiGamer28 Год назад +6

    For line 3 i

  • @harshitchaurasia6351
    @harshitchaurasia6351 Год назад +25

    can't explain how college wallah is helpful for us................ Thank you 😇

    • @wjeevika
      @wjeevika Год назад +3

      Team College Wallah 🙌🏻🔥

    • @learnenglish699
      @learnenglish699 Год назад +2

      same bhaii life mein kuch aab to bann jaungaaa aja nahi to kal but kuch saloo mein jakr alakh pandey sir ke paer jarur touch karungaa

  • @BaapDeveloper
    @BaapDeveloper Год назад +24

    you want to Learn DSA
    Best place and free
    Thank you all CW
    Team ❤

    • @jayneel3137
      @jayneel3137 Год назад +1

      in which language are you learning c++ or java ? I'm confused between those ?

    • @BaapDeveloper
      @BaapDeveloper Год назад

      @@jayneel3137 Java

    • @BaapDeveloper
      @BaapDeveloper Год назад

      @@jayneel3137 kisi or ko dekho kaise solve karte hain dekh dekh ke idea aane lgye ge

    • @wjeevika
      @wjeevika Год назад

      😇😇✌🏻✌🏻

  • @FunMan_08
    @FunMan_08 Год назад +8

    Thanks a lot
    *1st year students mark you attendence*

  • @codewithDSA
    @codewithDSA Год назад +3

    c++ approach T.C O(N^2)
    vector twoSum(vector& nums, int target) {
    for(int i=0;i

  • @kdcode449
    @kdcode449 Год назад +6

    Continue this type of videos Java leetcode questions. Very helpful for understand the question logic.

    • @wjeevika
      @wjeevika Год назад +1

      Definitely ✅

  • @Afzal3000
    @Afzal3000 Год назад +3

    Thank you Sooo much for this Video,
    I had a feeling from start of my programming journey that I am not prepared for leet code, and this is not a new thing, I am facing this problem from quite a few time
    Everywhere I hear that "Leetcode ke que karo, leetcode par weekly- biweekly contest do", but every time I procrastinate thinking pehle kuch aana to chahiya fir karte hai, and the day never came
    After this video I have got a boost of confidence and motivation to finally make Leetcode profile and start solving questions,
    Tysm❤️❤️❤️

    • @Afzal3000
      @Afzal3000 Год назад +1

      Please continue this type of videos, where every weekend we solve some imp Leetcode questions 😃🙏🙏

    • @wjeevika
      @wjeevika Год назад +1

      I'm glad that you have created your Leetcode profile. Just be consistent and you'll rock it. Good luck!!

    • @wjeevika
      @wjeevika Год назад +1

      @@Afzal3000 Sure, we'll create more such videos.

  • @gateocity
    @gateocity Год назад +7

    Better than ALPHA 2.O
    PW is providing all this for free

  • @kirankadam2603
    @kirankadam2603 Год назад +6

    This is awesome...pls make playlist of such problems...thank you so much ☺️❣️

  • @MohitSingh-zo8rj
    @MohitSingh-zo8rj Год назад +1

    Hi ma'am,
    I was trying to solve LeetCode problem for many days but I was not attempting.
    Thank you so much ma'am. Because it was started.

  • @cuteshalvi
    @cuteshalvi Год назад +5

    Plz ma'am continue this series 🙏🙏🙏

  • @aayushchauhan5528
    @aayushchauhan5528 Год назад +3

    please continue with this vedios

  • @Afzal3000
    @Afzal3000 Год назад +10

    Please continue this type of videos, where every weekend we solve some imp Leetcode questions 😃

    • @wjeevika
      @wjeevika Год назад +3

      Yes, for sure. 😇

    • @jitendratolani5908
      @jitendratolani5908 Год назад +2

      Mam here were is public static void main(String[] args)??

  • @johnsonsvaselly5008
    @johnsonsvaselly5008 Год назад +2

    This will make my future tq pw.

  • @kamyagurnani3565
    @kamyagurnani3565 4 месяца назад +1

    i really liked your explanation

  • @SourabhsDrive068
    @SourabhsDrive068 Год назад +1

    Ma'am Or Sir ❤️💯 please Answer Me🙏🙏
    Any non-tech student is fully prepared for placement
    kya tech ki degree important hai ya Non-Tech ki degree se bhi kam chal jayega
    Is there a degree requirement to become a software engineer?
    Can I become a software engineer without a degree?

  • @tarikaziz354
    @tarikaziz354 Год назад +1

    NYC explain.
    But dryrun is not better. Please try better dryrun in ipad for our help.

  • @dipmukati9140
    @dipmukati9140 4 месяца назад +1

    case 4 fail nested loop [ j] [ j]==10 target is fullfill but on same index so we want [1,2] but answer is [1,1] so its wrong

  • @sanketdhokale7260
    @sanketdhokale7260 6 месяцев назад +1

    Thank you ma'am... very helpful video

  • @trbzkhan9822
    @trbzkhan9822 Год назад +5

    mam,please provide us leetcode easy problem list to explore our logic and make it leetcode series problem videos more.THANKYOU

    • @wjeevika
      @wjeevika Год назад +1

      Sure we'll make a list of Leetcode video solutions in both C++ & Java.

    • @Arnaab7741
      @Arnaab7741 Год назад +1

      @@wjeevika mam without main method how this code is executed ? Plzz explain

    • @jitendratolani5908
      @jitendratolani5908 Год назад +1

      ​@@wjeevikaman when more vedio will be created

  • @kishnersuperbannumiyer7383
    @kishnersuperbannumiyer7383 Год назад +1

    Mam please more leetcode questions please

  • @tarun7453
    @tarun7453 Год назад +2

    Should continue this question series Evey day

    • @wjeevika
      @wjeevika Год назад

      Yes, we'll be uploading more such videos. Stay Tuned!!

  • @pratik8308
    @pratik8308 Год назад +1

    Mam i m in class 12, our boards are in Feb2023.
    I m having Python as a subject. But I know a little bit about python and nothing about Sql.
    Yes i m in strong in class 11 python but not in class 12.........
    So, plzzzzzz bring series for class 12 students.....?..
    As i believe in PW

  • @crickfootchannel
    @crickfootchannel Год назад

    Mam c++ mein karaiye

  • @nikhil_yaduvanshi01
    @nikhil_yaduvanshi01 Год назад +1

    Please start this leetcode series in c++ also

  • @deepaknadda8463
    @deepaknadda8463 5 месяцев назад

    its time complexity will be O(n2) , we can use hashmap

  • @rahuljangid1831
    @rahuljangid1831 Год назад +1

    Thank you so much mem & Team PWSkills .
    Mem leetcode video students ko coding me interest badhane me bhut help karegi
    Please request he leetcode problem solution video every day aaye or kam se kam 2 problem per day aaye
    Thanks mem

  • @sumangaldutta3123
    @sumangaldutta3123 Год назад +1

    Please provide a introduction video of leetcode that includes all details of leetcode and how we use it

  • @priyankapawar9048
    @priyankapawar9048 Год назад +1

    Very well explained.. Thanks a lot

  • @307waseemtariq5
    @307waseemtariq5 Год назад

    Please make all leet code in serial form problem -- 1, 2, 3, 4... so that we can easily target the level

  • @johnsonsvaselly5008
    @johnsonsvaselly5008 Год назад +2

    This is really helpful for me tq maam

    • @wjeevika
      @wjeevika Год назад

      Glad you liked it.

  • @amany46
    @amany46 Год назад +1

    Can also do this ques with o(n)time.

  • @KattameediVishnuvardhan
    @KattameediVishnuvardhan Год назад +1

    MAM please solve advance pattren printing questions also

  • @farzaan7
    @farzaan7 3 месяца назад

    optimal approach is to use a Hashmap

  • @code3799
    @code3799 Год назад +1

    Mam java me hi continue rakhiye

  • @Rajkumarraj12367
    @Rajkumarraj12367 Год назад

    plz continue this series

  • @amitdangar324
    @amitdangar324 Год назад

    Plz make video series for python with dsa and data science

  • @NeverGiveUp-tr8sy
    @NeverGiveUp-tr8sy Год назад +2

    please uplode next Java Lecture

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

    use hashmap to make time complexity 0(n)

  • @ssasjreddy5154
    @ssasjreddy5154 8 месяцев назад

    Didi we need more more videos solving in leetcode

  • @pawanrajput9451
    @pawanrajput9451 Год назад +1

    Thank u so much 😍 ma'am
    For more practice

    • @wjeevika
      @wjeevika Год назад +1

      Most Welcome Pawan 😇

  • @skyboy.creation
    @skyboy.creation Год назад +2

    mam aap awesome ho

  • @nityaranjan6714
    @nityaranjan6714 Год назад

    But time complexity is O(n^2) , Its Brute force approach.

  • @DreamTons
    @DreamTons Год назад +1

    Is leetcode sufficient or I have to search for other site for SDE

  • @swapnil1465
    @swapnil1465 Год назад

    Thank you so much PW I have No words 🥰

  • @shivamjha8985
    @shivamjha8985 Год назад

    Please Make this a weekend thing so that we can practice along with it

  • @pawanrajput9451
    @pawanrajput9451 Год назад

    Plse ma'am continue series

  • @shobhitgupta604
    @shobhitgupta604 Год назад +8

    Are ap toh DTU wli didi ho😂

  • @shubhpriyam
    @shubhpriyam Год назад

    Same can be done with the single loop, don't you think this is increasing complexity?

  • @alisidhu-qo4fd
    @alisidhu-qo4fd 5 месяцев назад +1

    bki sb to thk ha Bacha nhi khna hmy aj ka bd 😎😎

  • @jayprakashjaiswaldeptofcom1250
    @jayprakashjaiswaldeptofcom1250 Год назад +2

    Mam,later please solve questions on tree,graph and all

  • @mdtauseefparvez4412
    @mdtauseefparvez4412 Год назад

    Please continue the series mam

  • @akashdubey1550
    @akashdubey1550 Год назад

    make a complete video on leetcode

  • @syedkaif1753
    @syedkaif1753 Год назад

    Please make a playlist of this

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

    mam please start this series

  • @RishabSharma6969
    @RishabSharma6969 10 месяцев назад +1

    Madam ji ne brute Force ka solution bana diya..Please give more optimal solution next time.

  • @v2jarvis
    @v2jarvis Год назад

    Very helpful mam thanks a lot

  • @desi_lakdiii
    @desi_lakdiii 3 месяца назад

    Good work

  • @DreamTons
    @DreamTons Год назад +1

    Maam please start cpp leetcode series

  • @vikaspal702
    @vikaspal702 Год назад

    Mam hashmap java me class kab hogi

  • @Vansh_Ag
    @Vansh_Ag Год назад +2

    Please upload for c++ also

    • @wjeevika
      @wjeevika Год назад

      Yes, we'll do that pretty soon.

  • @shilpalakhani6028
    @shilpalakhani6028 Год назад

    please do leetcode for C++

  • @Shiva.Shiva.49
    @Shiva.Shiva.49 Год назад +3

    plz lunch pay after placement course.

  • @sscode3809
    @sscode3809 Год назад +1

    Please solve the problem in c++ in same code

  • @akshaykhandelwal5925
    @akshaykhandelwal5925 Год назад

    Mam ye leet code wali playlist kya hai

  • @dikshadeshmukh4779
    @dikshadeshmukh4779 Год назад

    Thankyou so much

  • @satyamjaiswal577
    @satyamjaiswal577 Год назад

    Really very helpful

  • @neerajkumar-m8e8v
    @neerajkumar-m8e8v 9 месяцев назад

    but it's time complexicity is O(n^2). so this method is not recommended. you should add one efficient approach as well. this question was asked from me in interview and he put one condition that you don't have to use multiple loops. and I couldn't solve it😮‍💨

  • @ishaangupta710
    @ishaangupta710 Год назад

    Please suggest book on java indian authors

  • @siddhus5012
    @siddhus5012 Год назад

    Mam why should we do code on leetcode & what are the benefits of doing code on it?

    • @wjeevika
      @wjeevika Год назад +1

      To get into your dream company, you must first clear the online assessment, in which DSA questions are asked. Leetcode gives you the confidence to solve such questions. You can know the theoretical concept, but solving questions matters the most at the end of the day.
      So, understand the concept, solve questions and ultimately you'll get into your dream company. Good luck!!

  • @arjunsingh9738
    @arjunsingh9738 Год назад

    Nice solution

  • @akash_mishra565
    @akash_mishra565 Год назад

    Can you please make playlist for this as well it will be helpful for us

  • @gauravpandey684
    @gauravpandey684 Год назад

    Bss yahi chaiye tha 🙏🙏

  • @dowannacode
    @dowannacode 5 месяцев назад

    Okay understood , but why it's light mode , are you sure you are a programmer ?

  • @DCSIMRANKHAN-ft7kh
    @DCSIMRANKHAN-ft7kh Год назад

    Mam make more and more video please

  • @abhidagreat2914
    @abhidagreat2914 Год назад +2

    Ma'am instead of returning values of i and j. I printed them in if section and used break statement but my break statement is not working. Can you please explain this situation.........
    Regards

    • @wjeevika
      @wjeevika Год назад +2

      Heyy, I far as I have understood your question:
      First, you can definitely print anywhere in the code (this won't affect Leetcode submission) and test how your code is working, but here, there is a return type, so it is mandatory that you should return something (array in our case).
      Second, when you'll use the break statement, you'll come out of only one inner for loop, not from both for loops.
      If you still have any doubts, feel free to share your code, I'll help debug it.

    • @wjeevika
      @wjeevika Год назад +2

      Try this code out to understand break statement better:
      Code:
      for(int i = 0; i < 5; i++){
      for(int j = 0; j < 5; j++){
      if(j == 3){
      break;
      }
      cout

    • @abhidagreat2914
      @abhidagreat2914 Год назад

      Thanks ma'am. Thanks a lot. This doubt was haunting me since days. My next doubt is about recursive function. Should I ask here or there is any better platform?????

  • @aryanchawla2133
    @aryanchawla2133 Год назад

    mam will there be such videos of leetcode in c++ too

  • @1msmotivatedlines981
    @1msmotivatedlines981 6 месяцев назад

    Plss upload playlist

  • @AbdullahMukri-v7c
    @AbdullahMukri-v7c 4 месяца назад

    thanks maam!

  • @Arshad___Ali
    @Arshad___Ali Год назад +1

    Mam leetcode problem solving ka series alag rakhiyega, don't mix it with java playlist

    • @BaapDeveloper
      @BaapDeveloper Год назад

      Thank you bro puri team ko nahi pata tha ye

    • @Arshad___Ali
      @Arshad___Ali Год назад

      @@BaapDeveloper Its ok mam

  • @ramamishra9502
    @ramamishra9502 Год назад

    Upload the 3sum triplets code from leetcode que

  • @dancewithnisha944
    @dancewithnisha944 Год назад

    Give phyton...also

  • @rajkumarpanigrahi2013
    @rajkumarpanigrahi2013 Год назад

    Maam full stack development course kab aayega

  • @deepakbaghel2444
    @deepakbaghel2444 Год назад

    Mam you are too Beautiful 😍😍😍,I can't able to move my eyes from you❤

  • @kidsacademyxorstartupknowl2478

    Two Pointer Approach

  • @fdanish5162
    @fdanish5162 Год назад

    thanks

  • @harshgupta4378
    @harshgupta4378 Год назад +2

    PW we want python course.

  • @bhattbrthers7598
    @bhattbrthers7598 Год назад +1

    Yes

  • @lakshywankar4872
    @lakshywankar4872 Год назад +3

    Cheat code search kiya tha ab leet code padh rha hu🙄🙄

  • @indianeducationcenter9852
    @indianeducationcenter9852 Год назад

    Thinks ma'am ♨️♨️♨️♨️🧡❣️

  • @satyamjaiswal577
    @satyamjaiswal577 Год назад

    Thank you mam

  • @deebaskincare9734
    @deebaskincare9734 Год назад

    Plz anser me
    When we use Java intelije we need main function and hear no mai function and also you did not use print statment how it posible

  • @Timepassgaming04
    @Timepassgaming04 Год назад +1

    Aree only single video on leetcode ?
    Or more coming?

    • @wjeevika
      @wjeevika Год назад

      More videos are on the way!! Stay Tuned to College Wallah

  • @adithyakl05
    @adithyakl05 10 месяцев назад

    Can anyone explain why we need to return null;

  • @RashmitaBarik-lg1jj
    @RashmitaBarik-lg1jj 6 месяцев назад

    I wrote the same code why it's showing compile error

  • @teenageworrior1634
    @teenageworrior1634 Год назад

    Cpp me bhi hona chaiye plz

  • @indrajit4933
    @indrajit4933 Год назад

    c++ also leetcode solution please say that urvi dee

  • @filmbuzz9419
    @filmbuzz9419 Год назад

    I am 1000 Wala like Kiya 😅🎉

  • @rajkumarpanigrahi2013
    @rajkumarpanigrahi2013 Год назад +1

    When will you upload next video

    • @wjeevika
      @wjeevika Год назад

      Super Soon!! Stay Tuned

  • @25-cse-csmohitkumarmandal59
    @25-cse-csmohitkumarmandal59 Год назад +29

    Mam C++ m kro n please