Word Search | Leet code 79 | Theory explained + Python code | July Leet code challenge

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ม.ค. 2025

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

  • @ri_rs
    @ri_rs 4 ปีที่แล้ว +7

    Anytime I search for youtube solutions of any leetcode problem, if I find your solution to that problem then I always check out your video first because I always know for sure if you have explained it, then I'll surely understand your solution without the need to check out any other solution. You explain very well. Nice work. Keep it up !

    • @saianishmalla2646
      @saianishmalla2646  4 ปีที่แล้ว

      ayyee thanks a lot I'm glad the videos help :)

  • @skyplanet9858
    @skyplanet9858 3 ปีที่แล้ว

    Great explanation, thank you!

  • @朱超-c7c
    @朱超-c7c 3 ปีที่แล้ว +2

    can you explain more how board[y][x] = '' " can help prevent re-use of the same character?

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

      This will replace the character from the board and will not be available to search in the following recursion calls.
      Or you may also save the element position it in a list and check it everytime to prevent it from reusing.

  • @allisontearjen9743
    @allisontearjen9743 4 ปีที่แล้ว

    you made this problem so easy! thank you.

  • @krithik4464
    @krithik4464 4 ปีที่แล้ว +1

    Great explanation ❤️

  • @alluringgrace413
    @alluringgrace413 3 ปีที่แล้ว

    What is the time and space complexity of this solution?

  • @ishayadav5221
    @ishayadav5221 4 ปีที่แล้ว

    Looks tough but u explained it so well

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

    Why can't I apply BFS?

  • @shaktishekharpanda8360
    @shaktishekharpanda8360 4 ปีที่แล้ว

    could not understand index and how it is used.

    • @arnabpersonal6729
      @arnabpersonal6729 4 ปีที่แล้ว

      index is the pointer to the character in word for traversal

  • @mallasatyanarayana1942
    @mallasatyanarayana1942 4 ปีที่แล้ว

    Cool

  • @AnuRadha-wk8vn
    @AnuRadha-wk8vn 4 ปีที่แล้ว

    👍🤩

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

    getting TLE from this soluion

  • @PoornaKrishNarasimhan
    @PoornaKrishNarasimhan 3 ปีที่แล้ว

    can you explain more how board[y][x] = '' " can help prevent re-use of the same character?

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

      This will replace the character from the board and will not be available to search in the following recursion calls.
      Or you may also save the element position it in a list and check it everytime to prevent it from reusing.