- Видео 355
- Просмотров 50 944 604
NeetCode
США
Добавлен 28 май 2020
Current NEET and ex-Google SWE, also I love teaching!
N.E.E.T. = (Not in education, employment or training)
Preparing for coding interviews? Checkout neetcode.io
N.E.E.T. = (Not in education, employment or training)
Preparing for coding interviews? Checkout neetcode.io
The LeetCode Fallacy
🚀 neetcode.io/ - A better way to prepare for coding interviews
Checkout my second Channel: www.youtube.com/@NeetCodeIO
🧑💼 LinkedIn: www.linkedin.com/in/navdeep-singh-3aaa14161/
📷 Instagram: neetcodeio
🥷 Discord: discord.gg/ddjKRXPqtk
🐦 Twitter: neetcode1
🎵 TikTok: www.tiktok.com/@neetcode.io
"Sappheiros - Fading" is under a Creative Commons license (CC BY 3.0) / ruclips.net/user/Sappheiros
Music promoted by BreakingCopyright: ruclips.net/video/uhqMKpppnpo/видео.html
#coding #neetcode #python
Checkout my second Channel: www.youtube.com/@NeetCodeIO
🧑💼 LinkedIn: www.linkedin.com/in/navdeep-singh-3aaa14161/
📷 Instagram: neetcodeio
🥷 Discord: discord.gg/ddjKRXPqtk
🐦 Twitter: neetcode1
🎵 TikTok: www.tiktok.com/@neetcode.io
"Sappheiros - Fading" is under a Creative Commons license (CC BY 3.0) / ruclips.net/user/Sappheiros
Music promoted by BreakingCopyright: ruclips.net/video/uhqMKpppnpo/видео.html
#coding #neetcode #python
Просмотров: 339 162
Видео
Most Common Concepts for Coding Interviews
Просмотров 259 тыс.6 месяцев назад
The fastest way to prepare for coding interviews: prioritize the most common data structures and algorithms. 🚀 neetcode.io/ - Get lifetime access to every course I ever create! Checkout my second Channel: www.youtube.com/@NeetCodeIO 🌎 neetcode.io/roadmap - Coding Interview Roadmap 📃 neetcode.io/practice - Neetcode 150 🧑💼 LinkedIn: www.linkedin.com/in/navdeep-singh-3aaa14161/ 🥷 Discord: discord...
Leetcode 24 Hour Challenge (while learning Golang)
Просмотров 114 тыс.7 месяцев назад
Coding leetcode problems for 24 hours straight because I enjoy the pain. And I get to learn about Golang, which is such a great language for leetcoding. 🚀 neetcode.io/ - A better way to prepare for coding interviews Checkout my second Channel for daily uploads: www.youtube.com/@NeetCodeIO 🧑💼 Connect on LinkedIn: www.linkedin.com/in/navdeep-singh-3aaa14161/ 🥷 Discord: discord.gg/ddjKRXPqtk 🐦 Tw...
I quit Amazon after two months
Просмотров 551 тыс.7 месяцев назад
Sharing my story of working at Amazon and being unemployed for over a year. 🚀 neetcode.io/ - A better way to prepare for coding interviews. Checkout my second Channel for daily uploads: www.youtube.com/@NeetCodeIO 🧑💼 LinkedIn: www.linkedin.com/in/navdeep-singh-3aaa14161/ 🥷 Discord: discord.gg/ddjKRXPqtk 🐦 Twitter: neetcode1 📷 Instagram: neetcodeio 0:00 - Intro 0:36 -...
I coded a Leetcode clone (it's easier than you think)
Просмотров 134 тыс.8 месяцев назад
I coded a leetcode clone (an online code judge application, not literally a leetcode clone). I walk through how I did it, including the backend, frontend, and the process of executing test cases. 🚀 neetcode.io/ - Get lifetime access to every course I ever create! Checkout my second Channel: www.youtube.com/@NeetCodeIO 🧑💼 LinkedIn: www.linkedin.com/in/navdeep-singh-3aaa14161/ 🐦 Twitter: twitter...
Google's Tech Stack (6 internal tools revealed)
Просмотров 299 тыс.8 месяцев назад
Google's internal tech stack is mostly public and we talk about 6 of the most influential infrastructure tools used at google, either currently or in the past. 🚀 neetcode.io/ - A better way to prepare for coding interviews 📝 neetcode.io/courses/lessons/design-youtube - RUclips Skeleton Design Doc MongoDB Cheat sheet: neetcode.io/courses/lessons/mongodb MongoDB Atlas - tinyurl.com/kae79pew Tools...
My Last Day at Google
Просмотров 544 тыс.10 месяцев назад
I left Google earlier this year, after working there for about 1.5 years as a software engineer. 🚀 neetcode.io/ - A better way to prepare for coding interviews! Checkout my second Channel: @NeetCodeIO 🥷 Discord: discord.gg/ddjKRXPqtk 🧑💼 LinkedIn: www.linkedin.com/in/navdeep-singh-3aaa14161/ 🐦 Twitter: neetcode1 📷 Instagram: neetcodeio 🎵 TikTok: www.tiktok.com/@neetco...
My Brain after 569 Leetcode Problems
Просмотров 2,3 млнГод назад
🗺️ Roadmap: neetcode.io In this video I wanted to share every single thing I learned from solving and explaining hundreds of leetcode problems. Quiz Feature: neetcode.io/ 🚀 neetcode.io/ - A better way to prepare for coding interviews! Second channel: @NeetCodeIO 🧑💼 LinkedIn: www.linkedin.com/in/navdeep-singh-3aaa14161/ 🥷 Discord: discord.gg/ddjKRXPqtk 🐦 Twitter: neetcode1 📷 Instagr...
GPT-4 is OVERHYPED
Просмотров 116 тыс.Год назад
🚀 neetcode.io/ - A better way to prepare for coding interviews! Checkout my second Channel: @NeetCodeIO 🧑💼 LinkedIn: www.linkedin.com/in/navdeep-singh-3aaa14161/ 🥷 Discord: discord.gg/ddjKRXPqtk 🐦 Twitter: neetcode1 📷 Instagram: neetcodeio 🎵 TikTok: www.tiktok.com/@neetcode.io #coding #neetcode #python
20 System Design Concepts Explained in 10 Minutes
Просмотров 827 тыс.Год назад
🚀 neetcode.io/ - A better way to prepare for coding interviews! A brief overview of 20 system design concepts for system design interviews. Checkout my second Channel: @NeetCodeIO 🧑💼 LinkedIn: www.linkedin.com/in/navdeep-singh-3aaa14161/ 🥷 Discord: discord.gg/ddjKRXPqtk 🐦 Twitter: neetcode1 📷 Instagram: neetcodeio 🎵 TikTok: www.tiktok.com/@neetcode.io 0:00 - Intro 0:...
Google will DESTROY ChatGPT in 2023
Просмотров 217 тыс.Год назад
🚀 neetcode.io/ - A better way to prepare for coding interviews! Meet Bard - Google's answer to ChatGPT and Microsofts new changes to bing and edge. Will this AI war between tech giants lead to faster automation of jobs? Let's discuss. 🧑💼 LinkedIn: www.linkedin.com/in/navdeep-singh-3aaa14161/ 🥷 Discord: discord.gg/ddjKRXPqtk 🐦 Twitter: neetcode1 📷 Instagram: neetcodeio...
8 Design Patterns EVERY Developer Should Know
Просмотров 969 тыс.Год назад
🚀 neetcode.io/ - A better way to prepare for coding interviews! Checkout my second Channel: @NeetCodeIO While some object oriented design patterns are a bit outdated, it's important for every software engineer to understand the most important ones. I cover several of my favorite ones in this video. Code from video: neetcode.io/courses/lessons/8-design-patterns 🧑💼 LinkedIn: www.linkedin.com/in/...
Technologies I'm Learning in 2023
Просмотров 165 тыс.Год назад
🚀 neetcode.io/ - Get lifetime access to every course I ever create! The technologies I'm planning on learning next year. I feel like some parts of this came off a bit rushed / confusing, so let me know if you have questions. Checkout my second Channel: @NeetCodeIO 🧑💼 LinkedIn: www.linkedin.com/in/navdeep-singh-3aaa14161/ 🥷 Discord: discord.gg/ddjKRXPqtk 🐦 Twitter: neetcode1 📷 Insta...
The BEST Coding Interview Roadmap in 2023 (free)
Просмотров 365 тыс.Год назад
🚀 neetcode.io/ - Checkout the FREE roadmap! Checkout my second Channel: @NeetCodeIO 🧑💼 LinkedIn: www.linkedin.com/in/navdeep-singh-3aaa14161/ 🥷 Discord: discord.gg/ddjKRXPqtk 🐦 Twitter: neetcode1 📷 Instagram: neetcodeio 🎵 TikTok: www.tiktok.com/@neetcode.io #leetcode #roadmap #coding
Design Youtube - System Design Interview
Просмотров 236 тыс.Год назад
Design RUclips - System Design Interview
Design Twitter - System Design Interview
Просмотров 439 тыс.Год назад
Design Twitter - System Design Interview
Mock Google Coding Interview with a Meta Intern
Просмотров 842 тыс.Год назад
Mock Google Coding Interview with a Meta Intern
Anatomy of a Production App - System Design
Просмотров 109 тыс.Год назад
Anatomy of a Production App - System Design
Big-O Notation - For Coding Interviews
Просмотров 380 тыс.Год назад
Big-O Notation - For Coding Interviews
Python for Coding Interviews - Everything you need to Know
Просмотров 359 тыс.Год назад
Python for Coding Interviews - Everything you need to Know
Dynamic Programming 2D - Full Course - Python
Просмотров 98 тыс.Год назад
Dynamic Programming 2D - Full Course - Python
Dynamic Programming 1D - Full Course - Python
Просмотров 223 тыс.Год назад
Dynamic Programming 1D - Full Course - Python
Maximum Performance of a Team - Leetcode 1383 - Python
Просмотров 28 тыс.Год назад
Maximum Performance of a Team - Leetcode 1383 - Python
Construct String from Binary Tree - Leetcode 606 - Python
Просмотров 32 тыс.Год назад
Construct String from Binary Tree - Leetcode 606 - Python
How I Coded a SaaS (payments, database and frontend)
Просмотров 134 тыс.Год назад
How I Coded a SaaS (payments, database and frontend)
Count Vowels Permutation - Dynamic Programming - Leetcode 1220 - Python
Просмотров 40 тыс.Год назад
Count Vowels Permutation - Dynamic Programming - Leetcode 1220 - Python
Tech Stack I use at Google as a Software Engineer
Просмотров 407 тыс.Год назад
Tech Stack I use at Google as a Software Engineer
Can you not also start at the beginning and step forward? We keep track of the maximum distance you can travel at each step. Either your previous step -1 or the current steps.
Thanks for the nice explanation. Probably the best out there for free. Just wanted to make sure one thing. At 14:45 when you run heapify and heapop separately the time complexity of the overall function should be n+logn, not n+nlogn and hence O(n) a the end.
I feel you need to be good at math to crack this one on your own.
Is that any language proficient on execution in front of interviewer?
NICE SUPER EXCELLENT MOTIVATED
The visualization did wonders to help me tackle this problem. I didn't even have to look at the actual implementation to solve it after looking at it!
I would really like to see a neetcode add a daily question based on my progression in the road map. Like you said, some questions are derived from other questions. So a daily question based on which questions I’ve completed to allow me to flex my understanding to conform to a new yet similar problem would be great. Love your videos ❤
Doesn't resetting curSum to 0 assume that there are values in our array that are >= 0? What if all our values are negative?
for me I was able to come with recursive solution, no problem at all but not able to come with dp approach as was not able to find how the states would be saved and it does happen with me a lot. any idea on how to become better at this
Interview: do you talk the same way ? ADHD of FryingPan 😳🤣🤣
you dont need any other python video after seeing this one... the one I've seen previously is useless in comparison
What is the space complexity ? Since we are using HashMap and Set?
At 11:35 you say "Plus C again", but this is the most profound and mysterious part of the entire problem, and you just casually and flippantly throw that out there as if it's intuitive or known, while trying to intuitively explain the problem. You're trying to grant us intuition with a magical answer that reveals no intuitive understanding. 😬💡
Nice! Sir, I just love the way you explain the answers. I think we can also stop the iteration when R.next == nil so our L will be at position where we wanted. Then we won't need dummy node.
After watching previous video, I successfully solved this on my own. Upon reviewing your explanation, I realized that we arrived at the same solution. So happy that i improved, ty
Wonderful explanation. I have bachelor degree of IT and only now have I understood what big notation is all about. Thank you
Its a little unclear to me as how this would be a dp problem, as the title of the video states. I guess if you wanted to approach this as a DP, it would be good to draw this as a decision tree and where the DP kicks into the solution exactly. So far the approach with using two converging pointers is way easier to understand and use.
based of combination sum 1 and subset 2 : class Solution: def combinationSum2(self, candidates: List[int], target: int) -> List[List[int]]: res = [] candidates.sort() def dfs(i,cur,total): if total == target: res.append(cur.copy()) return if i >= len(candidates) or total > target : return cur.append(candidates[i]) dfs(i+1, cur, total + candidates[i]) cur.pop() while i + 1 < len(candidates) and candidates[i] == candidates[i+1]: i += 1 dfs(i + 1, cur, total) dfs(0,[],0) return res
thanks goat
based of subset 1 and skipping the same elements on second path class Solution: def subsetsWithDup(self, nums: List[int]) -> List[List[int]]: sub, subs = [], [] nums.sort() def backtrack(i): if i >= len(nums): return subs.append(sub.copy()) sub.append(nums[i]) backtrack(i+1) sub.pop() while i + 1 < len(nums) and nums[i+1] == nums[i]: i += 1 backtrack(i+1) backtrack(0) return subs
I really recommend using whiteboard every time you make a technical challenge, specially in interviews, it shows you understood the problem and it makes you explain how you are designing the solution. It also (for example) helped me get the best solution in the 375 - Guess Number Higher or Lower just by drawing the problem. Never had a 0 milliseconds answer on a solution that I wrote on my own 😅
Tiny optimization but you don't have to start at len(arr)-3 you can start at len(arr)-4 bc the second to last element will never be smaller if it jumps to the last element first before the end of the staircase. It will always stay the same.
No one cares!!!!!!!!!
Thank you
I think understanding the cycle update and doing it with an outer loop is something that people would more likely come up in the interview! I wonder what is the better way to solve this in actual interview
I got asked this question in an internship interview @Microsoft. wtf 😂😂 When I was asked this question I thought it was kinda weird in a way that it sound easy but at the same time felt kinda off. Of course I didn't even come near this solution and when I looked it up my sus feelings were correct 😭😭
The posDiag and negDiag solution is amazing!
Thanks a lot buddy... Very helpful ❤
If you guys are tired of multiplying -1 inorder to get max heap in python, I've implemented a simple code snippet. I hope it helps you :) Happy learning. import heapq from typing import * class BaseError(Exception): pass class IncorrectObject(BaseError): pass class MaxHeap: def __init__(self): self.elements = [] def __getitem__(self, ind): item = self.elements[ind] return -item def __len__(self): return len(self.elements) class MinHeap: def __init__(self): self.elements = [] def __getitem__(self, ind): item = self.elements[ind] return item def __len__(self): return len(self.elements) def heappush(hp: Union[MaxHeap, MinHeap], item: int) -> None: if isinstance(hp, MaxHeap): heapq.heappush(hp.elements, -item) elif isinstance(hp, MinHeap): heapq.heappush(hp.elements, item) else: raise IncorrectObject("Incorrect object passed") def heappop(hp: Union[MaxHeap, MinHeap]) -> int: if isinstance(hp, MaxHeap): return -heapq.heappop(hp.elements) elif isinstance(hp, MinHeap): return heapq.heappop(hp.elements) else: raise IncorrectObject("Incorrect object passed") if __name__ == '__main__': minHeap = MinHeap() maxHeap = MaxHeap() for item in [1, 2, 3, 4, 5, 100, 90, 70, 80]: heappush(minHeap, item) heappush(maxHeap, item) print("minHeap top:", minHeap[0], "maxHeap top:", maxHeap[0]) while minHeap and maxHeap: print("heapop minHeap:", heappop(minHeap), "heappop minHeap:", heappop(maxHeap))
I still don't quite get it. The problem description asks us to return the head. The merged linked list is the head?
Great to hear this..keep doing what you love bro
how the hell is this an easy problem
I wrote this way: def merge(self, intervals: List[List[int]]) -> List[List[int]]: i = 0 finalList = [] intervals.sort(key = lambda i: i[0]) while i < len(intervals): start = intervals[i][0] end = intervals[i][-1] while i+1 < len(intervals) and end >= intervals[i+1][0]: i+=1 end = max(end, intervals[i][-1]) finalList.append([start, end]) i += 1 return finalList
this question only increase my depression because it made me feel myself like a numb
Can't you just have a z pointer that goes through each element In the array and an i and j pointer that multiplies all elements before z and after z? That's the solution I came up with and it looks like this: class Solution: def productExceptSelf(self, nums: List[int]) -> List[int]: output = [] for z in range(len(nums)): product = 1 for i in range(z + 1, len(nums)): product *= nums[i] for j in range(z - 1, -1, -1): product *= nums[j] output.append(product) return output
I dont understand why it should be 1 when you're already on step 5
You believe in honor and problem solving until companies only hire the “other candidate” who does bullshit their way through. 5 months of job searching with morals ruins you, trust me
Explanation super difficult, code super easy hahahahha
@NeetCode - If output of this code/ our final result was allowed to be say a set of tuples(instead of List of lists of the triplets) could we have done without the need of sorting the input array, because then the set will automatically not contain duplicate tuples of 3 elements in it even if we add duplicate tuple of triplets, later on in the set. ? Haven't reworked your example code to this approach but worth trying.
Maybe the set appraoch will work but the time complexity of that solution might be O(N^2 same as what you have above.
thanks man
yo, bro, there is actually a better solution! using bfs you can each level just add to a res q[-1] node
fuck you and take my money. In all seriousness, i bought your course and in the process of grinding with the hope of getting into google.
U a God
return true if not false que porra é essa irmão?
Appreciate Your hard work. It was hard. I will need to review again a few times to figure out and remember.
In CPP, is there any elegant solution to this? I can't make the HashMap with the array due to some limitation. The go to solution it seems is to literally just use the sort algorithm and hashmap with a string of the sorted words.
this was asked to me in the first round of an interview
I think it should be O(n * log(k)) at 2:30
Nice, thanks for that
Both, the way you explain and the animations you provide, are truly awesome!