NeetCode
NeetCode
  • Видео 355
  • Просмотров 50 944 604
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
Просмотров: 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
Will AI replace programmers?
Просмотров 176 тыс.Год назад
Will AI replace programmers?
Design Youtube - System Design Interview
Просмотров 236 тыс.Год назад
Design RUclips - System Design Interview
Is FAANG dead?
Просмотров 115 тыс.Год назад
Is FAANG dead?
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
Tech Layoffs & Hiring Freezes
Просмотров 337 тыс.Год назад
Tech Layoffs & Hiring Freezes
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

Комментарии

  • @JS-ii3rn
    @JS-ii3rn 15 часов назад

    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.

  • @md.sharifulhaque2717
    @md.sharifulhaque2717 17 часов назад

    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.

  • @bluesteel1
    @bluesteel1 17 часов назад

    I feel you need to be good at math to crack this one on your own.

  • @AnandA-ih1on
    @AnandA-ih1on 19 часов назад

    Is that any language proficient on execution in front of interviewer?

  • @ganeshjaggineni4097
    @ganeshjaggineni4097 19 часов назад

    NICE SUPER EXCELLENT MOTIVATED

  • @Andrew-dd2vf
    @Andrew-dd2vf 19 часов назад

    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!

  • @0brooo
    @0brooo 20 часов назад

    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 ❤

  • @Dygit
    @Dygit 20 часов назад

    Doesn't resetting curSum to 0 assume that there are values in our array that are >= 0? What if all our values are negative?

  • @rishabhmalhotra6474
    @rishabhmalhotra6474 20 часов назад

    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

  • @heratenny6713
    @heratenny6713 20 часов назад

    Interview: do you talk the same way ? ADHD of FryingPan 😳🤣🤣

  • @mmmmkkk
    @mmmmkkk 21 час назад

    you dont need any other python video after seeing this one... the one I've seen previously is useless in comparison

  • @nilabalasubramanian594
    @nilabalasubramanian594 День назад

    What is the space complexity ? Since we are using HashMap and Set?

  • @ianokay
    @ianokay День назад

    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. 😬💡

  • @samchopra100
    @samchopra100 День назад

    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.

  • @PhanNghia-fk5rv
    @PhanNghia-fk5rv День назад

    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

  • @user-vt2ml9ot6e
    @user-vt2ml9ot6e День назад

    Wonderful explanation. I have bachelor degree of IT and only now have I understood what big notation is all about. Thank you

  • @arkady767
    @arkady767 День назад

    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.

  • @TanishBansal-ss2ou
    @TanishBansal-ss2ou День назад

    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

  • @barnetthan9391
    @barnetthan9391 День назад

    thanks goat

  • @TanishBansal-ss2ou
    @TanishBansal-ss2ou День назад

    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

  • @aresnemeia
    @aresnemeia День назад

    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 😅

  • @jourdanooi3324
    @jourdanooi3324 День назад

    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.

  • @eaglesmgc9242
    @eaglesmgc9242 День назад

    No one cares!!!!!!!!!

  • @sjuvanet
    @sjuvanet День назад

    Thank you

  • @davidoh0905
    @davidoh0905 День назад

    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

  • @Zerobrofan
    @Zerobrofan День назад

    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 😭😭

  • @puckwang6850
    @puckwang6850 День назад

    The posDiag and negDiag solution is amazing!

  • @MeenakshiSankaranarayanan
    @MeenakshiSankaranarayanan День назад

    Thanks a lot buddy... Very helpful ❤

  • @sanjayrakshit8797
    @sanjayrakshit8797 День назад

    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))

  • @neighboroldwang
    @neighboroldwang День назад

    I still don't quite get it. The problem description asks us to return the head. The merged linked list is the head?

  • @entity5678
    @entity5678 День назад

    Great to hear this..keep doing what you love bro

  • @Xavierrex3
    @Xavierrex3 День назад

    how the hell is this an easy problem

  • @anshitasaxena3992
    @anshitasaxena3992 День назад

    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

  • @fuzzywuzzy318
    @fuzzywuzzy318 День назад

    this question only increase my depression because it made me feel myself like a numb

  • @user-yk9tv1lv5n
    @user-yk9tv1lv5n День назад

    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

  • @praveenvelanati9450
    @praveenvelanati9450 День назад

    I dont understand why it should be 1 when you're already on step 5

  • @rytraccount4553
    @rytraccount4553 День назад

    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

  • @fabio336ful
    @fabio336ful День назад

    Explanation super difficult, code super easy hahahahha

  • @ajitsdeshpande
    @ajitsdeshpande День назад

    @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.

    • @ajitsdeshpande
      @ajitsdeshpande День назад

      Maybe the set appraoch will work but the time complexity of that solution might be O(N^2 same as what you have above.

  • @sprinklepancake
    @sprinklepancake 2 дня назад

    thanks man

  • @user-dp9gi1vg8r
    @user-dp9gi1vg8r 2 дня назад

    yo, bro, there is actually a better solution! using bfs you can each level just add to a res q[-1] node

  • @nguyentuan1990
    @nguyentuan1990 2 дня назад

    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.

  • @edwardteach2
    @edwardteach2 2 дня назад

    U a God

  • @guilhermealmeida6342
    @guilhermealmeida6342 2 дня назад

    return true if not false que porra é essa irmão?

  • @andriidanylov9453
    @andriidanylov9453 2 дня назад

    Appreciate Your hard work. It was hard. I will need to review again a few times to figure out and remember.

  • @SMBlolwut
    @SMBlolwut 2 дня назад

    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.

  • @PankajKumar-mz6mp
    @PankajKumar-mz6mp 2 дня назад

    this was asked to me in the first round of an interview

  • @olehpisklov
    @olehpisklov 2 дня назад

    I think it should be O(n * log(k)) at 2:30

  • @eugenesol2074
    @eugenesol2074 2 дня назад

    Nice, thanks for that

  • @andresnet1827
    @andresnet1827 2 дня назад

    Both, the way you explain and the animations you provide, are truly awesome!