VALID NUMBER | LEETCODE #65 | PYTHON SOLUTION

Поделиться
HTML-код
  • Опубликовано: 26 ноя 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 😂

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

  • @VerghisKoshi
    @VerghisKoshi Год назад

    Nice work.

  • @ramyhussein4091
    @ramyhussein4091 2 года назад

    You're Brilliant!

  • @manojjain3501
    @manojjain3501 9 месяцев назад

    Liked the simplicity

  • @AmolGautam
    @AmolGautam 10 месяцев назад

    Thank you.

  • @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 !!!