String Compression III - Leetcode
10:24
2 сағат бұрын
Rotate String -  Leetcode (Pyhon)
10:00
4 сағат бұрын
Leetcode 2490 - Circular Sentence (Python)
7:09
Add Two Numbers = Leetcode (Python)
7:59
9 сағат бұрын
Maximum Number of Moves in a Grid - Leetcode
13:40
Calculus Lesson 1 - Intro To Limits
8:49
19 сағат бұрын
Integer to Roman - Leetcode 12 (Python)
10:23
Sort Colors   LeetCode 75 (Python)
8:44
Maximum Swap - Leetcode (Python)
10:24
Valid Sudoku - Leetcode 36 (Python)
13:59
Пікірлер
@juliopchile
@juliopchile Сағат бұрын
Shouldn't it get stuck in an infinite loop if 1 is in the list of numbers?
@osamahussam4351
@osamahussam4351 Күн бұрын
The first viewer ever .. actually I'm struggling now in this question, but I feel like it's easy, and all the ppl in the discussion section said it must be marked as easy .. and I spent like 50 min, and I can't solve that, actually it's frustrated! I'm new in problem solving and I solved like 80 problems, can u give me any advice please ?
@ThinkOutsideTheBox12345
@ThinkOutsideTheBox12345 Күн бұрын
I would say the key is practice. Try to go step by step from the easier to harder algorithms and common patterns to adapt to the problem difficulty. If you can’t solve mediums like this problem, try solving easies first, and work your way up from there. Also, when solving problems, try to ask yourself questions like, which algorithm should I use to solve this, or what patterns do I notice in the problem. Also, if you cant solve a problem within 40-50 mins, try googling solutions or watching vidoes and then ask yourself, why and how does this work. But overall, make sure you are familiar and are comfortable with Data Structures and Algorithms, look for key patterns and try to analyze how you would solve a problem. Try to think what tools you might need to solve the problem, how you would approach the problem, and things like that. Your initial thoughts dont have to be the most optimal solution, just try to understand and grasp problems, and how you would think to approach it, I recommend starting with brute force solutions first when needed. Also, try asking ChatGpt to give you practice problems and logic problems to improve problem solving skills, and start easy and work your way up to harder problems. Also, I recommend AOPS as well if you want to try to improve problem solving skills!
@osamahussam4351
@osamahussam4351 Күн бұрын
@ThinkOutsideTheBox12345 actually very helpful, thanks a lot ❤❤
@ThinkOutsideTheBox12345
@ThinkOutsideTheBox12345 Күн бұрын
@ No worries, glad I could help!
@John-g1p2x
@John-g1p2x Күн бұрын
Awesome!
@ThinkOutsideTheBox12345
@ThinkOutsideTheBox12345 Күн бұрын
Thank you! Cheers!
@John-g1p2x
@John-g1p2x 8 күн бұрын
Nice!
@John-g1p2x
@John-g1p2x 9 күн бұрын
Nice!
@ThinkOutsideTheBox12345
@ThinkOutsideTheBox12345 21 күн бұрын
Sorry if I talked too fast, try slowing down the video to 0.75x speed when needed!
@ThinkOutsideTheBox12345
@ThinkOutsideTheBox12345 24 күн бұрын
Hope you guys enjoyed and learned something new! Feel free to add any questions in the comment section down below! This was honestly a very hard problem, but I hope you guys liked it!😅
@John-g1p2x
@John-g1p2x 24 күн бұрын
nice
@ThinkOutsideTheBox12345
@ThinkOutsideTheBox12345 25 күн бұрын
Hope you guys enjoy this daily leetcode Challenge!
@John-g1p2x
@John-g1p2x 26 күн бұрын
nice bro
@imeldamogi
@imeldamogi 27 күн бұрын
yes, plz
@r5pmet435
@r5pmet435 27 күн бұрын
but this makes us to check all the list even if we already know the majority element. So isnt it better to use a hashmap since there are only 2 elements in our map it wont take space?
@ThinkOutsideTheBox12345
@ThinkOutsideTheBox12345 27 күн бұрын
I understand where you're coming from, but the hashmap would take extra space and cause the space-time complexity to be O(N). The one-pass solution I showed would be taking only O(1) constant space and still have a runtime complexity of of linear time, making it the more optimal solution. Although the hashmap solution is a lot easier to code, the voting algorithm would be more optimal because of that constant extra space.
@thetornadodragon6114
@thetornadodragon6114 29 күн бұрын
Very good explanation!
@spektral05
@spektral05 Ай бұрын
very cool!
@John-g1p2x
@John-g1p2x Ай бұрын
Great job!
@spidersddc3051
@spidersddc3051 Ай бұрын
Large
@krishkelageri8865
@krishkelageri8865 Ай бұрын
Nice Name!
@ThinkOutsideTheBox12345
@ThinkOutsideTheBox12345 Ай бұрын
Thanks!
@John-g1p2x
@John-g1p2x Ай бұрын
Awesome!
@krishkelageri8865
@krishkelageri8865 Ай бұрын
subscribe button smashed 👍
@John-g1p2x
@John-g1p2x Ай бұрын
Nice!
@krishkelageri8865
@krishkelageri8865 Ай бұрын
Nice!
@JustAnotherHuman100
@JustAnotherHuman100 Ай бұрын
keep up the good work akhil kulkarni !!
@John-g1p2x
@John-g1p2x Ай бұрын
Cool!
@Hellohihihihihihihi
@Hellohihihihihihihi Ай бұрын
I was struggling on this one! Thank you!
@ThinkOutsideTheBox12345
@ThinkOutsideTheBox12345 22 күн бұрын
Happy to help!
@Hellohihihihihihihi
@Hellohihihihihihihi Ай бұрын
Don't worry, you talked perfectly!
@Hellohihihihihihihi
@Hellohihihihihihihi Ай бұрын
Thank you!
@Hellohihihihihihihi
@Hellohihihihihihihi Ай бұрын
you explained it very well!
@Hellohihihihihihihi
@Hellohihihihihihihi Ай бұрын
good job!
@MyKneeHurts
@MyKneeHurts Ай бұрын
did you record the audio on a potato by any chance? even a smartphone from 2010 would have a better mic than the shit youre recording with, jesus
@John-g1p2x
@John-g1p2x Ай бұрын
Nice!
@Hellohihihihihihihi
@Hellohihihihihihihi Ай бұрын
Another great video!
@Beater-w9n
@Beater-w9n Ай бұрын
I was struggling on this one! Thank you!
@Aaravlikespiano
@Aaravlikespiano Ай бұрын
Thank You!
@krishkelageri8865
@krishkelageri8865 Ай бұрын
this is one of your best videos! Good job!
@John-g1p2x
@John-g1p2x Ай бұрын
Awesome!
@Aaravlikespiano
@Aaravlikespiano Ай бұрын
good job!
@John-g1p2x
@John-g1p2x Ай бұрын
Cool!
@John-g1p2x
@John-g1p2x Ай бұрын
Nice!
@krishkelageri8865
@krishkelageri8865 Ай бұрын
Another great video!
@Aaravlikespiano
@Aaravlikespiano Ай бұрын
100+ views! Good job!
@John-g1p2x
@John-g1p2x Ай бұрын
Nice!
@Aaravlikespiano
@Aaravlikespiano Ай бұрын
thank you
@Hellohihihihihihihi
@Hellohihihihihihihi Ай бұрын
I really enjoyed this video!
@Aaravlikespiano
@Aaravlikespiano Ай бұрын
me too!
@Hellohihihihihihihi
@Hellohihihihihihihi Ай бұрын
I have also started leetcode because of you!
@spektral05
@spektral05 Ай бұрын
this is such a banger
@Hellohihihihihihihi
@Hellohihihihihihihi Ай бұрын
yes, it really is
@lightninghawkgaming6049
@lightninghawkgaming6049 Ай бұрын
Wow, thank you. This really aided me in my quest for programming mastery.
@Hellohihihihihihihi
@Hellohihihihihihihi Ай бұрын
Please continue uploading!
@Hellohihihihihihihi
@Hellohihihihihihihi Ай бұрын
You sure are smart
@Hellohihihihihihihi
@Hellohihihihihihihi Ай бұрын
Thanks for the daily uploads!
@Hellohihihihihihihi
@Hellohihihihihihihi Ай бұрын
I've learned so much from you!