Unique Email Addresses - Two Solutions - Leetcode 929 Python
Vložit
- čas přidán 8. 07. 2024
- 🚀 neetcode.io/ - A better way to prepare for Coding Interviews
🐦 Twitter: / neetcode1
🥷 Discord: / discord
🐮 Support the channel: / neetcode
⭐ BLIND-75 PLAYLIST: • Two Sum - Leetcode 1 -...
💡 CODING SOLUTIONS: • Coding Interview Solut...
💡 DYNAMIC PROGRAMMING PLAYLIST: • House Robber - Leetco...
🌲 TREE PLAYLIST: • Invert Binary Tree - D...
💡 GRAPH PLAYLIST: • Course Schedule - Grap...
💡 BACKTRACKING PLAYLIST: • Word Search - Backtrac...
💡 LINKED LIST PLAYLIST: • Reverse Linked List - ...
💡 BINARY SEARCH PLAYLIST: • Binary Search
📚 STACK PLAYLIST: • Stack Problems
Problem Link: leetcode.com/problems/unique-...
0:00 - Read the problem
1:15 - Drawing Explanation
4:55 - Coding Solution #1
7:40 - Coding Solution #2
leetcode 929
This question was identified as a facebook interview question from here: github.com/xizhengszhang/Leet...
#coding #interview #python
Disclosure: Some of the links above may be affiliate links, from which I may earn a small commission. - Věda a technologie
⭐ EASY PLAYLIST: czcams.com/video/KLlXCFG5TnA/video.html
Great problem and clean solution as usual. I haven't had interviews that disallowed simple built-in functions (seems like a dumb idea, making interview questions seem even less practical), but appreciate you giving the other approach of not using built-in functions. I like this better than Two-Sum as a beginner coding question to start with
it would be quite silly to disallow simple built ins. Where would they draw the line? Does that mean he can't use len() to find the length of the set then? lol
i wrote like 50 lines of and you wrote just 10 lol
Thanks for explaining both the approaches!
The way you clear the question is really brilliant.
Very helpful! Thanks!
Great explanation bro, please upload all leetcode problems solutions.
Hi there, can't say how much I appreciate your videos, I definitely find your explanations easier to be understood and digested compared to others. Plz keep up the great work!
One request: I'm wondering when you get a chance, could you please make a video of leetcode problem #1931. Painting a Grid With Three Different Colors? This is a dp problem, relatively new, I can't solve it by myself and can't even understand the solutions posted by others... Really appreciate if you could make a video of it ^_^
Please do this problem Neet
Neetcode is the best!
Brilliant
Hey all, I have a question:
Why are things called a 'hash _' when they don't have a hashing function?
I noticed Neetcode calls what i'd call a 'map' a 'hashmap' and in this example, what I'd call just a 'set' a 'hashset'.
AFAIK, for it to be a 'hashset' the input would have to be converted to a hash before being stored in a set data structure.
If anyone can let me know I'd appreciate it!
easy but the problem description has many gotchas
hi can you do question 92 (reverse linked list2)? Thanks
Sure, i'll try to upload it soon!
Brilliant