Find All Numbers Disappeared in an Array | LeetCode 448 | Google Coding Interview Tutorial
Vložit
- čas přidán 9. 07. 2024
- Find All Numbers Disappeared in an Array solution: LeetCode 448
Code and written explanation: terriblewhiteboard.com/find-a...
Link to problem on LeetCode: leetcode.com/problems/find-al...
Buy Me a Coffee: www.buymeacoffee.com/terrible...
AFFILIATE LINKS
If you're interested in learning algorithms, these are great resources.
💻 40% off Tech Interview Pro: techinterviewpro.com/terriblew...
⌨️ 20% off CoderPro: coderpro.com/terriblewhiteboard
💲 All coupons and discounts 💲
terriblewhiteboard.com/coupon...
Find All Numbers Disappeared in an Array | LeetCode 448 | Google Coding Interview
#findallnumbersdisappeared #leetcode #algorithms #terriblewhiteboard #codinginterview
Click the time stamp to jump to different parts of the video.
00:00 Title
00:07 Problem readout
00:55 Whiteboard solution
06:15 Coding solution
11:15 Result and outro
If there are any videos you'd like me to make or if you have any ideas on how to optimize this solution, let me know!
Your solution is genius and I would never have thought of doing this myself
o l Thanks!
Nice Explanation !!
Thanks!
Thank you. It's a great job. Please continue, your work helps a lot.
Thanks!
Beautifully explained. A lot better than the other CZcamsrs explanations!
very good explanation, thanks mate.
Thanks!
you are doing a great job ! keep it up
Thank you!
Awesome sauce.
Thanks!
That was the best explanation on this issue, and you didn't even have to code it. Your whiteboard explanation was great itself.
Any other similar problems like that? I don't think I could come up with O(1) during an interview.
what would i do without this channel
Glad it helps!
Great solution ! Thanks for your effort !
Daaaaaaaamn what a great idea instead, I had to use an extra temp array but man the -ve mark was really GREAT.
keep it up man good job
Thanks!
Great Solution
Thanks!
A really creative and smart approach.
Thanks for great explanation
all the solutions I've seen by you are so good, please do the entire LC database
Thanks!
Oh man. So cool solution.
Thanks!
great job man!
Thanks!
Thanks a lot sir
Very clear explanation. Good one
Thanks!
saviour
Haha. Thanks.
Would it be expected of me in an interview to actually come up with this method? Or is using some extra memory like a hash set also acceptable?
does the result array technically make this linear space?
why do we need to mark the element negative?
Thanks for this video
You're welcome!
This is so smart.
Haha. Thanks!
May I know what's wrong with this code?
class Solution:
def findDisappearedNumbers(self, nums: List[int]) -> List[int]:
n = len(nums)
i=1
while i
can't believe this channel doesn't have million subs? (-_-)
Is there a name for this algorithm?
why u stopped making algorithm videos?
keep going man
Isn't this O(n^2) since you have to touch each element in the array twice?
Very confusing. The part where you jumped over a number is not clear.
Thanks!
noice
Thanks!