SHORTEST WAY TO FORM STRING | LEETCODE 1055 | PYTHON GREEDY SOLUTION

Sdílet
Vložit
  • čas přidán 23. 07. 2024
  • Discord Link: / discord
    Problem Link: leetcode.com/problems/shortes...
    In this video we are solving yet again another Google interview question since you guys seem to love watching these the most according to my analytics. This time it's "Shortest Way to Form String (Leetcode 1015)".
    This question is actually pretty easy and the solution is intuitive. And the best part is you can solve it with a two-pointers greedy algorithm!
    TIMESTAMPS
    00:00 Intro
    00:18 Question Prompt
    00:49 Example & Solution Intuition
    03:06 Coding
    07:45 Time/Space Complexity
    08:55 Outro
  • Věda a technologie

Komentáře • 4

  • @yantinglai7183
    @yantinglai7183 Před rokem

    Thank you so much for the video!

  • @leoneldossantos4071
    @leoneldossantos4071 Před 9 měsíci

    This is not the most efficient on the time complexity side. So from google point of view, the question is how can you improve that ?

  • @charlesraj9569
    @charlesraj9569 Před rokem

    Change the Problem# to 1055