Sum of Scores of Built String - Leetcode 2223 (Hard Problem) | Z Algorithm | String Matching Problem

In our quest to cover String Matching problems, lets do one more which is another Leetcode Hard: leetcode.com/problems/sum-of-...
This problem uses Z Algorithm in a clever fashion!
Connect with me on Linkedin: / bharat-khanna-717b4817b
Connect on Insta: / bharatkhanna1995
00:00-04:43 Introduction of Problem
04:44-08:40 Brute Force O(N^2)
08:41-12:45 Using Z Algorithm to Optimise
12:46-14:21 Code

Пікірлер: 4

  • @dayashankarlakhotia4943
    @dayashankarlakhotia49434 ай бұрын

    make video on leetcode weekly contest qn.no.4 leetcode no.3049

  • @sarcastic5561
    @sarcastic55614 ай бұрын

    Sir can u summarize z algo

  • @CodingwithBharat

    @CodingwithBharat

    4 ай бұрын

    You can watch the Z algo video I guess. It is a difficult algo and takes some time to understand: kzread.info/dash/bejne/opeAkpeigau4o84.html

  • @dayashankarlakhotia4943
    @dayashankarlakhotia49434 ай бұрын

    sou