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
Were you able to go all the way around?
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)
that does not make space O(1), I already talked about this in the video
nice