3292. Minimum Number of Valid Strings to Form Target II (Leetcode Hard)

Поділитися
Вставка
  • Опубліковано 19 вер 2024
  • Larry solves and analyzes this Leetcode problem as both an interviewer and an interviewee. This is a live recording of a real engineer solving a problem live - no cuts or edits!
    Problem: leetcode.com/c...
    Twitch: / larryny
    Discord: / discord
    Instagram: / larrysomewhere
    #leetcode #coding #programming

КОМЕНТАРІ • 6

  • @Algorithmist
    @Algorithmist  5 днів тому

    Did your target get to you?

  • @soumyajitganguly2593
    @soumyajitganguly2593 3 дні тому

    Jump game II :D, solved Q3 using this. Can be done in 1 pass for-loop. I didnt know about Z-functions so no Q4 :(

    • @soumyajitganguly2593
      @soumyajitganguly2593 2 дні тому

      solved it today using Z-functions + one-pass simplified BFS jump game ii.

    • @Algorithmist
      @Algorithmist  2 дні тому

      ya, I posted this on the Discord afterwards!

  • @nhienle5137
    @nhienle5137 4 дні тому

    Why it doesn't work with a prefix hashset? The constrain is really weird

    • @Algorithmist
      @Algorithmist  4 дні тому

      depends on how you do it it might be too slow