VALID NUMBER | LEETCODE #65 | PYTHON SOLUTION

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 พ.ย. 2024

ความคิดเห็น • 15

  • @alexassali3628
    @alexassali3628 2 ปีที่แล้ว +1

    Would like to thank you for being different than other channels by being reasonable in your selection of problems to benefit the listener the most without going into DP and recursive vague type of problems that he interviewers themselves cant code without cheating. I have encountered an undirected bidirectional graph where we need to find all possible paths from source to destination using dfs, the graph has possible two bidirectional links between two nodes so a node can be visited during one path search, can we see a solution or can u guide me to similar problem. thanks a lot

    • @crackfaang
      @crackfaang  2 ปีที่แล้ว

      Can’t really do anything unless you provide me with a leetcode problem number. There’s too little information there to give a sensible answer without knowing the proper constraints of the problem

    • @alexassali3628
      @alexassali3628 2 ปีที่แล้ว

      Dont have a number for it, however, I can send you details and even written solution, it is the site seeing problem for karat. Not sure how I can send you.

  • @Ankit-hs9nb
    @Ankit-hs9nb 2 ปีที่แล้ว +2

    Congrats for 1k!:)

    • @crackfaang
      @crackfaang  2 ปีที่แล้ว +1

      Thanks for the continuing support!

  • @jaybhanushali7115
    @jaybhanushali7115 2 ปีที่แล้ว +1

    Thanks for the video. But The space wont be O(1) since you are slicing the string in one of your if statements!

    • @crackfaang
      @crackfaang  2 ปีที่แล้ว

      Hmm yea good point. The general gist of the algorithm is the same. You can perform the integer check inline it just gets messy. I suppose even passing the index and the string itself would cause a copy to be made so you'd have to do it in place. Either way the logic is still the same. So much for writing clean code and abstracting logic away to a helper function 😂

  • @manojjain3501
    @manojjain3501 9 หลายเดือนก่อน

    Liked the simplicity

  • @ramyhussein4091
    @ramyhussein4091 2 ปีที่แล้ว

    You're Brilliant!

  • @AmolGautam
    @AmolGautam 10 หลายเดือนก่อน

    Thank you.

  • @VerghisKoshi
    @VerghisKoshi ปีที่แล้ว

    Nice work.

  • @lesterdelacruz5088
    @lesterdelacruz5088 8 หลายเดือนก่อน

    "One or more digits, followed by a dot '.', followed by one or more digits." why is "4." among the list of valid numbers? It doesn't have one or more digits after the '.'

  • @vigneshsampath3256
    @vigneshsampath3256 2 ปีที่แล้ว

    Now that the target (1K) is reached. Set up the new target and keep going. Never stop!

    • @crackfaang
      @crackfaang  2 ปีที่แล้ว +3

      10k next and then 100k

  • @schrodingerskatt222
    @schrodingerskatt222 ปีที่แล้ว

    The description of this problem is so bad, seriously !!!