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

  Рет қаралды 73,064

College Wallah

College Wallah

Күн бұрын

Пікірлер: 173
@ItachiGamer28
@ItachiGamer28 Жыл бұрын
For line 3 i
@BaapDeveloper
@BaapDeveloper 2 жыл бұрын
you want to Learn DSA Best place and free Thank you all CW Team ❤
@jayneel3137
@jayneel3137 2 жыл бұрын
in which language are you learning c++ or java ? I'm confused between those ?
@BaapDeveloper
@BaapDeveloper 2 жыл бұрын
@@jayneel3137 Java
@BaapDeveloper
@BaapDeveloper 2 жыл бұрын
@@jayneel3137 kisi or ko dekho kaise solve karte hain dekh dekh ke idea aane lgye ge
@wjeevika
@wjeevika 2 жыл бұрын
😇😇✌🏻✌🏻
@harshitchaurasia6351
@harshitchaurasia6351 2 жыл бұрын
can't explain how college wallah is helpful for us................ Thank you 😇
@wjeevika
@wjeevika 2 жыл бұрын
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
@kdcode449
@kdcode449 2 жыл бұрын
Continue this type of videos Java leetcode questions. Very helpful for understand the question logic.
@wjeevika
@wjeevika 2 жыл бұрын
Definitely ✅
@gateocity
@gateocity 2 жыл бұрын
Better than ALPHA 2.O PW is providing all this for free
@harshitsaini9775
@harshitsaini9775 2 ай бұрын
Bhai eski full playslit nahi ha kya
@codewithDSA
@codewithDSA 2 жыл бұрын
c++ approach T.C O(N^2) vector twoSum(vector& nums, int target) { for(int i=0;i
@wjeevika
@wjeevika 2 жыл бұрын
Good Going Ritesh ✌🏻
@altafalam6570
@altafalam6570 Жыл бұрын
TLE aayegaa
@FunMan_08
@FunMan_08 2 жыл бұрын
Thanks a lot *1st year students mark you attendence*
@Nobitha711
@Nobitha711 11 күн бұрын
COLLEGE ME HOGAYA BHAI
@kirankadam2603
@kirankadam2603 2 жыл бұрын
This is awesome...pls make playlist of such problems...thank you so much ☺️❣️
@Afzal3000
@Afzal3000 2 жыл бұрын
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 2 жыл бұрын
Please continue this type of videos, where every weekend we solve some imp Leetcode questions 😃🙏🙏
@wjeevika
@wjeevika 2 жыл бұрын
I'm glad that you have created your Leetcode profile. Just be consistent and you'll rock it. Good luck!!
@wjeevika
@wjeevika 2 жыл бұрын
@@Afzal3000 Sure, we'll create more such videos.
@cuteshalvi
@cuteshalvi Жыл бұрын
Plz ma'am continue this series 🙏🙏🙏
@Afzal3000
@Afzal3000 2 жыл бұрын
Please continue this type of videos, where every weekend we solve some imp Leetcode questions 😃
@wjeevika
@wjeevika 2 жыл бұрын
Yes, for sure. 😇
@jitendratolani5908
@jitendratolani5908 Жыл бұрын
Mam here were is public static void main(String[] args)??
@MohitSingh-zo8rj
@MohitSingh-zo8rj 2 жыл бұрын
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.
@dipmukati9140
@dipmukati9140 5 ай бұрын
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
@aayushchauhan5528
@aayushchauhan5528 2 жыл бұрын
please continue with this vedios
@tarikaziz354
@tarikaziz354 2 жыл бұрын
NYC explain. But dryrun is not better. Please try better dryrun in ipad for our help.
@johnsonsvaselly5008
@johnsonsvaselly5008 2 жыл бұрын
This will make my future tq pw.
@wjeevika
@wjeevika 2 жыл бұрын
Best Wishes
@trbzkhan9822
@trbzkhan9822 2 жыл бұрын
mam,please provide us leetcode easy problem list to explore our logic and make it leetcode series problem videos more.THANKYOU
@wjeevika
@wjeevika 2 жыл бұрын
Sure we'll make a list of Leetcode video solutions in both C++ & Java.
@Arnaab7741
@Arnaab7741 2 жыл бұрын
@@wjeevika mam without main method how this code is executed ? Plzz explain
@jitendratolani5908
@jitendratolani5908 Жыл бұрын
​@@wjeevikaman when more vedio will be created
@tarun7453
@tarun7453 2 жыл бұрын
Should continue this question series Evey day
@wjeevika
@wjeevika 2 жыл бұрын
Yes, we'll be uploading more such videos. Stay Tuned!!
@kamyagurnani3565
@kamyagurnani3565 4 ай бұрын
i really liked your explanation
@deepaknadda8463
@deepaknadda8463 6 ай бұрын
its time complexity will be O(n2) , we can use hashmap
@krishankantsinghgautam5558
@krishankantsinghgautam5558 5 ай бұрын
wo abhi newbie hai usko abhi nhi ata hoga hasmap
@Mr.coderrr108
@Mr.coderrr108 Жыл бұрын
Mam please more leetcode questions please
@KattameediVishnuvardhan
@KattameediVishnuvardhan 2 жыл бұрын
MAM please solve advance pattren printing questions also
@nikhil_yaduvanshi01
@nikhil_yaduvanshi01 2 жыл бұрын
Please start this leetcode series in c++ also
@amany46
@amany46 2 жыл бұрын
Can also do this ques with o(n)time.
@sanketdhokale7260
@sanketdhokale7260 7 ай бұрын
Thank you ma'am... very helpful video
@rahuljangid1831
@rahuljangid1831 2 жыл бұрын
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
@wjeevika
@wjeevika 2 жыл бұрын
✌🏻✌🏻
@rahuljangid1831
@rahuljangid1831 2 жыл бұрын
@@wjeevika thank you mem
@sumangaldutta3123
@sumangaldutta3123 2 жыл бұрын
Please provide a introduction video of leetcode that includes all details of leetcode and how we use it
@wjeevika
@wjeevika 2 жыл бұрын
Noted ✅
@priyankapawar9048
@priyankapawar9048 Жыл бұрын
Very well explained.. Thanks a lot
@nityaranjan6714
@nityaranjan6714 Жыл бұрын
But time complexity is O(n^2) , Its Brute force approach.
@manu-singh
@manu-singh 2 күн бұрын
Thanks didi for this clear explanation
@307waseemtariq5
@307waseemtariq5 2 жыл бұрын
Please make all leet code in serial form problem -- 1, 2, 3, 4... so that we can easily target the level
@amitdangar324
@amitdangar324 2 жыл бұрын
Plz make video series for python with dsa and data science
@NeverGiveUp-tr8sy
@NeverGiveUp-tr8sy 2 жыл бұрын
please uplode next Java Lecture
@johnsonsvaselly5008
@johnsonsvaselly5008 2 жыл бұрын
This is really helpful for me tq maam
@wjeevika
@wjeevika 2 жыл бұрын
Glad you liked it.
@SourabhsDrive068
@SourabhsDrive068 2 жыл бұрын
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?
@code3799
@code3799 2 жыл бұрын
Mam java me hi continue rakhiye
@crickfootchannel
@crickfootchannel 2 жыл бұрын
Mam c++ mein karaiye
@Shiva.Shiva.49
@Shiva.Shiva.49 2 жыл бұрын
plz lunch pay after placement course.
@jayprakashjaiswaldeptofcom1250
@jayprakashjaiswaldeptofcom1250 2 жыл бұрын
Mam,later please solve questions on tree,graph and all
@wjeevika
@wjeevika 2 жыл бұрын
Sure Sure
@DreamTons
@DreamTons 2 жыл бұрын
Is leetcode sufficient or I have to search for other site for SDE
@shivamjha8985
@shivamjha8985 2 жыл бұрын
Please Make this a weekend thing so that we can practice along with it
@ssasjreddy5154
@ssasjreddy5154 8 ай бұрын
Didi we need more more videos solving in leetcode
@pratik8308
@pratik8308 2 жыл бұрын
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
@pawanrajput9451
@pawanrajput9451 2 жыл бұрын
Thank u so much 😍 ma'am For more practice
@wjeevika
@wjeevika 2 жыл бұрын
Most Welcome Pawan 😇
@shubhpriyam
@shubhpriyam 2 жыл бұрын
Same can be done with the single loop, don't you think this is increasing complexity?
@swapnil1465
@swapnil1465 2 жыл бұрын
Thank you so much PW I have No words 🥰
@Rajkumarraj12367
@Rajkumarraj12367 Жыл бұрын
plz continue this series
@sscode3809
@sscode3809 2 жыл бұрын
Please solve the problem in c++ in same code
@wjeevika
@wjeevika 2 жыл бұрын
Super soon
@skyboy.creation
@skyboy.creation 2 жыл бұрын
mam aap awesome ho
@wjeevika
@wjeevika 2 жыл бұрын
😇✌🏻
@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 2 жыл бұрын
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?????
@alisidhu-qo4fd
@alisidhu-qo4fd 6 ай бұрын
bki sb to thk ha Bacha nhi khna hmy aj ka bd 😎😎
@Vansh_Ag
@Vansh_Ag 2 жыл бұрын
Please upload for c++ also
@wjeevika
@wjeevika 2 жыл бұрын
Yes, we'll do that pretty soon.
@akash_mishra565
@akash_mishra565 2 жыл бұрын
Can you please make playlist for this as well it will be helpful for us
@farzaan7
@farzaan7 3 ай бұрын
optimal approach is to use a Hashmap
@syedkaif1753
@syedkaif1753 2 жыл бұрын
Please make a playlist of this
@DreamTons
@DreamTons 2 жыл бұрын
Maam please start cpp leetcode series
@wjeevika
@wjeevika 2 жыл бұрын
Sure Sure
@vikaspal702
@vikaspal702 2 жыл бұрын
Mam hashmap java me class kab hogi
@mdtauseefparvez4412
@mdtauseefparvez4412 Жыл бұрын
Please continue the series mam
@ishaangupta710
@ishaangupta710 2 жыл бұрын
Please suggest book on java indian authors
@akshaykhandelwal5925
@akshaykhandelwal5925 Жыл бұрын
Mam ye leet code wali playlist kya hai
@akashdubey1550
@akashdubey1550 2 жыл бұрын
make a complete video on leetcode
@golupandey9915
@golupandey9915 Ай бұрын
use hashmap to make time complexity 0(n)
@shobhitgupta604
@shobhitgupta604 2 жыл бұрын
Are ap toh DTU wli didi ho😂
@desi_lakdiii
@desi_lakdiii 4 ай бұрын
Good work
@rajkumarpanigrahi2013
@rajkumarpanigrahi2013 2 жыл бұрын
Maam full stack development course kab aayega
@deebaskincare9734
@deebaskincare9734 2 жыл бұрын
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
@pawanrajput9451
@pawanrajput9451 Жыл бұрын
Plse ma'am continue series
@25-cse-csmohitkumarmandal59
@25-cse-csmohitkumarmandal59 2 жыл бұрын
Mam C++ m kro n please
@wjeevika
@wjeevika 2 жыл бұрын
Super Soon!! Stay Tuned
@hemant6973
@hemant6973 2 жыл бұрын
@@wjeevika hello mam.
@varunpandey3172
@varunpandey3172 2 жыл бұрын
Ni
@snowy_56524
@snowy_56524 Жыл бұрын
Nehi... java java java
@aryanchawla2133
@aryanchawla2133 2 жыл бұрын
mam will there be such videos of leetcode in c++ too
@RishabSharma6969
@RishabSharma6969 11 ай бұрын
Madam ji ne brute Force ka solution bana diya..Please give more optimal solution next time.
@rajkumarpanigrahi2013
@rajkumarpanigrahi2013 2 жыл бұрын
When will you upload next video
@wjeevika
@wjeevika 2 жыл бұрын
Super Soon!! Stay Tuned
@v2jarvis
@v2jarvis 2 жыл бұрын
Very helpful mam thanks a lot
@SAMEERUDDINLIETian
@SAMEERUDDINLIETian 2 ай бұрын
mam please start this series
@ramamishra9502
@ramamishra9502 Жыл бұрын
Upload the 3sum triplets code from leetcode que
@siddhus5012
@siddhus5012 2 жыл бұрын
Mam why should we do code on leetcode & what are the benefits of doing code on it?
@wjeevika
@wjeevika 2 жыл бұрын
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!!
@satyamjaiswal577
@satyamjaiswal577 2 жыл бұрын
Really very helpful
@Arshad___Ali
@Arshad___Ali 2 жыл бұрын
Mam leetcode problem solving ka series alag rakhiyega, don't mix it with java playlist
@BaapDeveloper
@BaapDeveloper 2 жыл бұрын
Thank you bro puri team ko nahi pata tha ye
@Arshad___Ali
@Arshad___Ali 2 жыл бұрын
@@BaapDeveloper Its ok mam
@arjunsingh9738
@arjunsingh9738 2 жыл бұрын
Nice solution
@neerajkumar-m8e8v
@neerajkumar-m8e8v 10 ай бұрын
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😮‍💨
@dowannacode
@dowannacode 5 ай бұрын
Okay understood , but why it's light mode , are you sure you are a programmer ?
@indrajit4933
@indrajit4933 2 жыл бұрын
c++ also leetcode solution please say that urvi dee
@ranjeetmaurya65
@ranjeetmaurya65 2 жыл бұрын
Ma'am, Bina dekhe code nahi kr paa Raha hai hm kya karen.
@wjeevika
@wjeevika 2 жыл бұрын
Practice kro hojaega
@RashmitaBarik-lg1jj
@RashmitaBarik-lg1jj 6 ай бұрын
I wrote the same code why it's showing compile error
@shilpalakhani6028
@shilpalakhani6028 2 жыл бұрын
please do leetcode for C++
@Timepassgaming04
@Timepassgaming04 2 жыл бұрын
Aree only single video on leetcode ? Or more coming?
@wjeevika
@wjeevika 2 жыл бұрын
More videos are on the way!! Stay Tuned to College Wallah
@adithyakl05
@adithyakl05 10 ай бұрын
Can anyone explain why we need to return null;
@gauravpandey684
@gauravpandey684 2 жыл бұрын
Bss yahi chaiye tha 🙏🙏
@facethetruth3039
@facethetruth3039 2 жыл бұрын
Channel admi please note to add video number..
@DCSIMRANKHAN-ft7kh
@DCSIMRANKHAN-ft7kh 2 жыл бұрын
Mam make more and more video please
@bhattbrthers7598
@bhattbrthers7598 2 жыл бұрын
Yes
@lakshywankar4872
@lakshywankar4872 2 жыл бұрын
Cheat code search kiya tha ab leet code padh rha hu🙄🙄
@wjeevika
@wjeevika 2 жыл бұрын
😂😂 Nice
@nullpointer500
@nullpointer500 Жыл бұрын
I am unable to find the playist for this series anyone please help me to get this series playist
@harshgupta4378
@harshgupta4378 2 жыл бұрын
PW we want python course.
@wjeevika
@wjeevika 2 жыл бұрын
Noted ✅✅
@kidsacademyxorstartupknowl2478
@kidsacademyxorstartupknowl2478 2 жыл бұрын
Two Pointer Approach
@dancewithnisha944
@dancewithnisha944 Жыл бұрын
Give phyton...also
@deepakbaghel2444
@deepakbaghel2444 Жыл бұрын
Mam you are too Beautiful 😍😍😍,I can't able to move my eyes from you❤
@1msmotivatedlines981
@1msmotivatedlines981 6 ай бұрын
Plss upload playlist
@1minwithtech495
@1minwithtech495 2 жыл бұрын
Mam c++ ka kro na please 🥺
@wjeevika
@wjeevika 2 жыл бұрын
Sure Sure
@dikshadeshmukh4779
@dikshadeshmukh4779 Жыл бұрын
Thankyou so much
@teenageworrior1634
@teenageworrior1634 2 жыл бұрын
Cpp me bhi hona chaiye plz
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 131 МЛН
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 9 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 40 МЛН
LeetCode in Java | Easy Question | Remove Duplicates from Sorted Array
14:49
I solved 541 Leetcode problems. But you need only 150.
7:42
Sahil & Sarra
Рет қаралды 2,4 МЛН
Leetcode Problem 1: Two Sum Solution in Python | Hindi
9:06
Insane Programming
Рет қаралды 4,6 М.
LeetCode Exercise in Java Tutorial - Two Sum FAST Solution
23:36
Coding with John
Рет қаралды 194 М.
Two Sum (Leetcode 1) - Easy (Hindi)
14:20
CodingWithPrakash
Рет қаралды 176 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 42 МЛН
LeetCode Problems | Medium Question | Rotate Array
22:44
College Wallah
Рет қаралды 14 М.
LeetCode Question with Solution | Two Sum Problem | Placement Series
15:35
Jenny's Lectures CS IT
Рет қаралды 14 М.
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 700 М.
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 131 МЛН