Skip to content

Commit

Permalink
note on 1508
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremymanning authored Aug 4, 2024
1 parent 585138e commit 826d7c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions problems/1508/jeremymanning.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,7 @@ class Solution:

Ok!

## Addendum

In retrospect: the sorting idea would *not* have worked, because it would have broken the "continuous subarrays" requirement in the problem description (i.e., sorting would break the given order). So that whole idea was flawed 🙃. I'm glad the "naive" approach worked!

0 comments on commit 826d7c2

Please sign in to comment.