425 Word Squares | Leetcode | Google Interview Question

Поділитися
Вставка
  • Опубліковано 16 гру 2024

КОМЕНТАРІ • 17

  • @arjun.s5112
    @arjun.s5112 4 роки тому +3

    Great explanation. You have put in efforts creating animations too. Thank you so much.

  • @cartooncartel6493
    @cartooncartel6493 Рік тому

    Awesome explanation.

  • @monishnjs
    @monishnjs 3 роки тому +1

    super. Great explanation !

  • @Rajb865
    @Rajb865 3 роки тому

    Great explanation bro... Thank you so much for your effort

  • @minakshikudalkar557
    @minakshikudalkar557 4 роки тому +1

    Great explanation!

  • @arthamsreenivas8858
    @arthamsreenivas8858 4 роки тому

    Great Explanation

  • @Bodythatbreaks
    @Bodythatbreaks 4 роки тому +1

    Explained well. :)

  • @rak590
    @rak590 4 роки тому

    what is the time complexity and space complexity of your solution?

    • @SonuRajplus
      @SonuRajplus  4 роки тому +1

      The time complexity would be O(N * 26^L) and space complexity would be O(NL). where N is the number of input words and L is the length of a single word.

    • @deveshsharma7487
      @deveshsharma7487 9 місяців тому

      @@SonuRajplus How is it N, if we are doing backtracking the time complexity should definitely include exponential term for n^L. Please explain your time complexity analysis

  • @akshitg
    @akshitg 2 роки тому +1

    1. The solution is more or less replica of leetcode solution. You should have cited that atleast. Logic is fine but even the way the code is structured is on same lines.
    2. Please avoid using companies' resources (PS: Zomato) as it could land you in trouble.