1605. Find Valid Matrix Given Row and Column Sums - Day 20/31 Leetcode July Challenge

Поделиться
HTML-код
  • Опубликовано: 15 окт 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/p...
    Twitch: / larryny
    Discord: / discord
    Instagram: / larrysomewhere
    #leetcode #coding #programming

Комментарии • 4

  • @Algorithmist
    @Algorithmist  2 месяца назад +1

    Were you able to go all the way around?

  • @kanewilliams1653
    @kanewilliams1653 2 месяца назад

    Space is O(1) given we start by initializing a max(C) * max(R) answer matrix. If len(C) or len(R) are unbounded, it is O(N^2)

    • @Algorithmist
      @Algorithmist  2 месяца назад

      that does not make space O(1), I already talked about this in the video

  • @codenocode
    @codenocode 2 месяца назад

    nice