dude wtf am i watching, who even cares just write the code to do the job, both these examples are fine lol
@moebabaa110 минут бұрын
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Сағат бұрын
I would rather pay a fucking tuition
@unlucky-777Сағат бұрын
Also because you sort the list when you reach positive numbers there are 0 possible triplets that can be equal to 0
@kdiffin3 сағат бұрын
Thanks for this
@saleheen13 сағат бұрын
Don't confuse it with "Product of subarry" problem. This is a different problem
@jaimeduncan61674 сағат бұрын
Does the second solution even work? it presupposes that X has an integer square root.
@shayansiddiqui59595 сағат бұрын
ngl this is interstellar type thing my head litreally spinned after knowing u can print fibonacci like that.
@Niknaz-hn5tv6 сағат бұрын
Just an interesting fact ...I'm in another country and this price is like over 2 years of our family income....
@demona6255 сағат бұрын
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.
@OmoshiroiBideo6 сағат бұрын
What is hashset?
@loc7s6 сағат бұрын
What is the black Friday special? The price is still $5500?
@SarhanNahmetov7 сағат бұрын
You’re the best Gregg! Thank you!
@TymexComputing7 сағат бұрын
i am sure that it would be way faster together with a step of newton raphson approximation method :)
@technicallytechnical17 сағат бұрын
heap 🗿
@moebabaa18 сағат бұрын
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...
@GregHogg8 сағат бұрын
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)!
@uuu123438 сағат бұрын
God I love for loops
@fernandojmhs8 сағат бұрын
Come on, I don't even understand the question
@Code_with_bharath158 сағат бұрын
Hey Greg what white board u r using for explaining stuff if anyone knows pls let me know
@adriandimitrov98508 сағат бұрын
Assembly in the garbage 🤣🤣🤣
@w201-og9 сағат бұрын
Thanks for sharing the knowledge!
@colimaarroyoisrael98869 сағат бұрын
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
@SnowyLeopardFrom199710 сағат бұрын
Assembly in the garbage 💀
@vickysharma922711 сағат бұрын
You haven't discussed time complexity 😶
@Lichtstrahl9213 сағат бұрын
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_eagleye14 сағат бұрын
bogosort
@pi_xi14 сағат бұрын
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_xi14 сағат бұрын
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)).
@GermanKousal16 сағат бұрын
Where are the curly braces?
@Cheester24717 сағат бұрын
wait, I distinctly remember using sets to optimize this problem's runtime. Was the problem recently changed?
@Rutik999917 сағат бұрын
best problem to learn all 3 traversal techniques
@concrescience364218 сағат бұрын
minesweeper
@user-AboxthatDrools18 сағат бұрын
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.
@stochastify20 сағат бұрын
Forget it, time to switch majors
@yehiaabuelnasr724320 сағат бұрын
the name of the question is crazy
@imadelachiri547520 сағат бұрын
What whiteboard are youyou using using to draw the explanations?
@maaz.i719 сағат бұрын
Siemens white board
@skanderbegvictor648723 сағат бұрын
heaps
@CreepyBioКүн бұрын
No faang be asking two sum in 2024 💀
@HamzaNasryКүн бұрын
No Tensorflow is bad it has problems connecting with CUDA and cuDNN Pytorch is well built
@kratos_gow610Күн бұрын
11:11, as of now.
@_blessie_Күн бұрын
oh ok
@paz1359Күн бұрын
😮🤯🤯🤯
@stevenpillay6725Күн бұрын
if only getting a job was this easy
@ceciljoel9577Күн бұрын
If someone had iq of 200 would it be difficult even then?
@TheShawn_vКүн бұрын
I solved it
@GregHoggКүн бұрын
Learn this stuff for FREE and find all the code solutions for this problem at algomap.io!
@vinureamКүн бұрын
Which IDE you using
@iyedbaassou3257Күн бұрын
are you dumb? ;--; its leetcode
@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.