leetcode
leetcode copied to clipboard
Leetcode solutions
[//]: # "Pull Request Template" [//]: # "Replace the placeholder values in the template below" - **File(s) Modified**: _0265-paint-house-ii.ts_ - **Language(s) Used**: _typescript._ - **Submission URL**: _https://leetcode.com/problems/paint-house-ii/submissions/951991493/_ [//]: # "Getting...
[//]: # "Pull Request Template" [//]: # "Replace the placeholder values in the template below" - **File(s) Modified**: _0015-3sum.go_ - **Language(s) Used**: _go_ - **Submission URL**: _https://leetcode.com/problems/3sum/submissions/951426548/_ This solution correctly...
[//]: # "Pull Request Template" [//]: # "Replace the placeholder values in the template below" - **File(s) Modified**: 0084-largest-rectangle-in-histogram.swift - **Language(s) Used**: swift - **Submission URL**: https://leetcode.com/problems/largest-rectangle-in-histogram/submissions/950696421/ [//]: # "Getting...
[//]: # "Pull Request Template" [//]: # "Replace the placeholder values in the template below" - **File(s) Modified**: _0367-valid-perfect-square.go, 0034-find-first-and-last-position-of-element-in-sorted-array.go, 1898-maximum-number-of-removable-characters.go_ - **Language(s) Used**: _golang_ - **Submission URL**: > -...
[//]: # "Pull Request Template" [//]: # "Replace the placeholder values in the template below" - **File(s) Modified**: 0853-car-fleet.swift - **Language(s) Used**: swift - **Submission URL**: https://leetcode.com/problems/car-fleet/submissions/949785419/ [//]: # "Getting...
[//]: # "Pull Request Template" [//]: # "Replace the placeholder values in the template below" - **File(s) Modified**: 0036-valid-sudoku.swift - **Language(s) Used**: swift - **Submission URL**: https://leetcode.com/problems/valid-sudoku/submissions/939598689/ [//]: # "Getting...
- **File(s) Modified**: _0036-valid-sudoku.rs_ - **Language(s) Used**: _rust_ - **Submission URL**: _https://leetcode.com/problems/valid-sudoku/submissions/949636309/_ Previous incorrect submission: _https://leetcode.com/problems/valid-sudoku/submissions/949595521/_ 1. fix for `bx` indices 2. use of returned insertion status > **Note** >...
- **File(s) Modified**: _0278-first-bad-version.py_ - **Language(s) Used**: _python_ - **Submission URL**: _https://leetcode.com/problems/first-bad-version/submissions/949592817/_
…d 75) [//]: # "Pull Request Template" [//]: # "Replace the placeholder values in the template below" - **File(s) Modified**: _0001-two-sum.py, 0049-group-anagrams.py, 0128-longest-consecutive-sequence.py, 0217-contains-duplicate.py, 0238-product-of-array-except-self.py, 0242-valid-anagram.py, 0271-encode-and-decode-strings.py, 0347-top-k-frequent-elements.py_ - **Language(s)...
fix go solution for "group-anagrams" to be optimal implement using letter count array as a key instead of a sorted string, according to the video solution. [//]: # "Pull Request...