leetcode
leetcode copied to clipboard
Leetcode solutions
[//]: # "Pull Request Template" [//]: # "Replace the placeholder values in the template below" - **File(s) Modified**: 0867-transpose-matrix.swift - **Language(s) Used**: swift - **Submission URL**: https://leetcode.com/problems/transpose-matrix/submissions/1209055079/ [//]: # "Getting...
[//]: # "Pull Request Template" [//]: # "Replace the placeholder values in the template below" - **File(s) Modified**: 0977-squares-of-a-sorted-array.swift - **Language(s) Used**: swift - **Submission URL**: https://leetcode.com/problems/squares-of-a-sorted-array/submissions/1207137139/ [//]: # "Getting...
[//]: # "Pull Request Template" [//]: # "Replace the placeholder values in the template below" - **File(s) Modified**: _0001-two-sum.py, 0002-add-two-numbers.py, etc..._ - **Language(s) Used**: _python, javascript, etc..._ - **Submission URL**:...
- **File(s) Modified**: _0219-contains-duplicate-II.swift, 0036-valid-sudoku.swift_ - **Language(s) Used**: _Swift_ - **Submission URL**: - _https://leetcode.com/problems/contains-duplicate-ii/submissions/1082536936/_ - _https://leetcode.com/problems/valid-sudoku/submissions/1082652145/_
[//]: # "Pull Request Template" [//]: # "Replace the placeholder values in the template below" - **File(s) Modified**: 0068-text-justification.java - **Language(s) Used**: Java - **Submission URL**: https://leetcode.com/problems/text-justification/submissions/1172467791/ [//]: # "Getting...
The Question Maximum Subarray Min Product is in the 1-D Dynamic Programming Section(in all neet code problems) But it should be in the Stack Section.
The current solution is: ```py class MinStack: def __init__(self): self.stack = [] self.minStack = [] def push(self, val: int) -> None: self.stack.append(val) val = min(val, self.minStack[-1] if self.minStack else val)...
…Condition.java [//]: # "Pull Request Template" [//]: # "Replace the placeholder values in the template below" - **File(s) Modified**: _0001-two-sum.py, 0002-add-two-numbers.py, etc..._ - **Language(s) Used**: _python, javascript, etc..._ - **Submission...
[//]: # "Pull Request Template" [//]: # "Replace the placeholder values in the template below" - **File(s) Modified**: _0068-text-justification.java_ - **Language(s) Used**: _java_ - **Submission URL**: _https://leetcode.com/problems/text-justification/submissions/1030668683/_ [//]: # "Getting...
[//]: # "Pull Request Template" [//]: # "Replace the placeholder values in the template below" - **File(s) Modified**: 0063-unique-paths-ii.swift - **Language(s) Used**: swift - **Submission URL**: https://leetcode.com/problems/unique-paths-ii/submissions/1201337371/ [//]: # "Getting...