Unique Email Addresses - Two Solutions - Leetcode 929 Python

Sdílet
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

Komentáře • 19

  • @NeetCode
    @NeetCode  Před 2 lety +1

    ⭐ EASY PLAYLIST: czcams.com/video/KLlXCFG5TnA/video.html

  • @DanhWasHere
    @DanhWasHere Před 2 lety +12

    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

    • @leeroymlg4692
      @leeroymlg4692 Před rokem +3

      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

  • @emmanuelu
    @emmanuelu Před 2 lety +9

    i wrote like 50 lines of and you wrote just 10 lol

  • @prempeacefulchannel
    @prempeacefulchannel Před 2 lety +4

    Thanks for explaining both the approaches!

  • @surajchauhan9685
    @surajchauhan9685 Před 2 lety +1

    The way you clear the question is really brilliant.

  • @user-xp4sl1cc8f
    @user-xp4sl1cc8f Před 2 lety +1

    Very helpful! Thanks!

  • @shreehari2589
    @shreehari2589 Před 2 lety +1

    Great explanation bro, please upload all leetcode problems solutions.

  • @kevinwang7811
    @kevinwang7811 Před 2 lety +2

    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 ^_^

  • @MrTomer157
    @MrTomer157 Před rokem

    Neetcode is the best!

  • @sathyanarayanankulasekaran5928

    Brilliant

  • @dmwhite6735
    @dmwhite6735 Před rokem

    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!

  • @metarus208
    @metarus208 Před 2 lety +2

    easy but the problem description has many gotchas

  • @herdata_eo4492
    @herdata_eo4492 Před 2 lety

    hi can you do question 92 (reverse linked list2)? Thanks

    • @NeetCode
      @NeetCode  Před 2 lety +2

      Sure, i'll try to upload it soon!

  • @flatmapper
    @flatmapper Před rokem

    Brilliant