ABSOLUTE INSANITY!
3:03
2 ай бұрын
Пікірлер
@lordmushroom723
@lordmushroom723 2 минут бұрын
dude wtf am i watching, who even cares just write the code to do the job, both these examples are fine lol
@moebabaa1
@moebabaa1 10 минут бұрын
you could just use the list to make a set get the len of the list and set and compare them if not == true
@rodrigocueto9427
@rodrigocueto9427 Сағат бұрын
I would rather pay a fucking tuition
@unlucky-777
@unlucky-777 Сағат бұрын
Also because you sort the list when you reach positive numbers there are 0 possible triplets that can be equal to 0
@kdiffin
@kdiffin 3 сағат бұрын
Thanks for this
@saleheen1
@saleheen1 3 сағат бұрын
Don't confuse it with "Product of subarry" problem. This is a different problem
@jaimeduncan6167
@jaimeduncan6167 4 сағат бұрын
Does the second solution even work? it presupposes that X has an integer square root.
@shayansiddiqui5959
@shayansiddiqui5959 5 сағат бұрын
ngl this is interstellar type thing my head litreally spinned after knowing u can print fibonacci like that.
@Niknaz-hn5tv
@Niknaz-hn5tv 6 сағат бұрын
Just an interesting fact ...I'm in another country and this price is like over 2 years of our family income....
@demona625
@demona625 5 сағат бұрын
Another fun fact is that even for the average us family it is an expensive course. In conclusion, the target group is not the average family in the US, let alone those in low-income countries.
@OmoshiroiBideo
@OmoshiroiBideo 6 сағат бұрын
What is hashset?
@loc7s
@loc7s 6 сағат бұрын
What is the black Friday special? The price is still $5500?
@SarhanNahmetov
@SarhanNahmetov 7 сағат бұрын
You’re the best Gregg! Thank you!
@TymexComputing
@TymexComputing 7 сағат бұрын
i am sure that it would be way faster together with a step of newton raphson approximation method :)
@technicallytechnical1
@technicallytechnical1 7 сағат бұрын
heap 🗿
@moebabaa1
@moebabaa1 8 сағат бұрын
stop with this nonsense. this is like asking someone trying to become a cashier at a gas station, what do you do when you see a crack head coke head and meth head get into a fight while the dude on Fytenll is struck by lightning and an 80 year old man is having a heart attack oh yhea and you cant use a for loop the solution needs to work on numbers f-q and letters 4 and 5 but not 6. while also working for the word Quinone. and returns the ancient Egyptian hieroglyph for warm apple pie on Tuesday and the sum of the inputs and the inputs that = 0 but it must use at least 3...
@GregHogg
@GregHogg 8 сағат бұрын
Algomap-io is amazing and free. But there's a commitment issue because it's a lot of stuff to learn on your own with no help. If you want a dedicated live class with me, it's a bit expensive at $5,500, but is the best option out there if it's affordable for you. I realize it won't be for most people reading this. That's okay. Check out the free version at algomap.io or the live class at algomap.io/bootcamp (black friday special)!
@uuu12343
@uuu12343 8 сағат бұрын
God I love for loops
@fernandojmhs
@fernandojmhs 8 сағат бұрын
Come on, I don't even understand the question
@Code_with_bharath15
@Code_with_bharath15 8 сағат бұрын
Hey Greg what white board u r using for explaining stuff if anyone knows pls let me know
@adriandimitrov9850
@adriandimitrov9850 8 сағат бұрын
Assembly in the garbage 🤣🤣🤣
@w201-og
@w201-og 9 сағат бұрын
Thanks for sharing the knowledge!
@colimaarroyoisrael9886
@colimaarroyoisrael9886 9 сағат бұрын
Why does he add L and R when dividing? Doesn't make sense if x=4 than M would be 5 and go through another iteration instead finding it the first
@SnowyLeopardFrom1997
@SnowyLeopardFrom1997 10 сағат бұрын
Assembly in the garbage 💀
@vickysharma9227
@vickysharma9227 11 сағат бұрын
You haven't discussed time complexity 😶
@Lichtstrahl92
@Lichtstrahl92 13 сағат бұрын
Watching him for a while now I get the impression that at Facebook all they do is to sum up stupid arrays the whole day 😂
@not_eagleye
@not_eagleye 14 сағат бұрын
bogosort
@pi_xi
@pi_xi 14 сағат бұрын
Why do you need a hash set, when you can have a bit map, as all values are integers and you only want to check if you have a duplicate?
@pi_xi
@pi_xi 14 сағат бұрын
As all numbers are integers and the array is already sorted, the square array will also be sorted. Except for the negative integers, in that case you can just use binary search (O(log(N)) or work with two moving pointers (O(1)).
@GermanKousal
@GermanKousal 16 сағат бұрын
Where are the curly braces?
@Cheester247
@Cheester247 17 сағат бұрын
wait, I distinctly remember using sets to optimize this problem's runtime. Was the problem recently changed?
@Rutik9999
@Rutik9999 17 сағат бұрын
best problem to learn all 3 traversal techniques
@concrescience3642
@concrescience3642 18 сағат бұрын
minesweeper
@user-AboxthatDrools
@user-AboxthatDrools 18 сағат бұрын
THEORETICALLY, BOGOSORT IS THE FASTEST SORT ALGORITHM BUT THAT'S ONLY IF YOU'RE REALLY, REALLY LUCKY. BEST CASE IF THE FIRST ITERATION OF THE ARRAY IS SORTED.
@stochastify
@stochastify 20 сағат бұрын
Forget it, time to switch majors
@yehiaabuelnasr7243
@yehiaabuelnasr7243 20 сағат бұрын
the name of the question is crazy
@imadelachiri5475
@imadelachiri5475 20 сағат бұрын
What whiteboard are youyou using using to draw the explanations?
@maaz.i7
@maaz.i7 19 сағат бұрын
Siemens white board
@skanderbegvictor6487
@skanderbegvictor6487 23 сағат бұрын
heaps
@CreepyBio
@CreepyBio Күн бұрын
No faang be asking two sum in 2024 💀
@HamzaNasry
@HamzaNasry Күн бұрын
No Tensorflow is bad it has problems connecting with CUDA and cuDNN Pytorch is well built
@kratos_gow610
@kratos_gow610 Күн бұрын
11:11, as of now.
@_blessie_
@_blessie_ Күн бұрын
oh ok
@paz1359
@paz1359 Күн бұрын
😮🤯🤯🤯
@stevenpillay6725
@stevenpillay6725 Күн бұрын
if only getting a job was this easy
@ceciljoel9577
@ceciljoel9577 Күн бұрын
If someone had iq of 200 would it be difficult even then?
@TheShawn_v
@TheShawn_v Күн бұрын
I solved it
@GregHogg
@GregHogg Күн бұрын
Learn this stuff for FREE and find all the code solutions for this problem at algomap.io!
@vinuream
@vinuream Күн бұрын
Which IDE you using
@iyedbaassou3257
@iyedbaassou3257 Күн бұрын
are you dumb? ;--; its leetcode
@Just_Flipy
@Just_Flipy Күн бұрын
C is top tier because it makes you code BLINDLY but also in a way you can understand. You dont need any library save for2. Meaning you need to just understand what you’re doing.