leetcode
leetcode copied to clipboard
Leetcode solutions
optimised the solution reduced time complexity [//]: # "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**:...
The leetcode question demands a window of max K + 1, (abs(i - j)
- **File(s) Modified**: 0091-decode-ways.rs - **Language(s) Used**: rust - **Submission URL**: https://leetcode.com/problems/decode-ways/submissions/1167872379
[//]: # "Pull Request Template" [//]: # "Replace the placeholder values in the template below" - **File(s) Modified**: 0278-first-bad-version.swift - **Language(s) Used**: swift - **Submission URL**: https://leetcode.com/problems/first-bad-version/submissions/1166677886/ [//]: # "Getting...
increased readability and code documentation [//]: # "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**: Java...
- **File(s) Modified**: _0700-search-in-a-binary-search-tree.java_ - **Language(s) Used**: _java_ - **Submission URL**: _https://leetcode.com/problems/search-in-a-binary-search-tree/submissions/1167683204/_
[//]: # "Pull Request Template" [//]: # "Replace the placeholder values in the template below" - **File(s) Modified**: _typescript/0494-target-sum.ts_ - **Language(s) Used**: _typescript_ - **Submission URL**: _https://leetcode.com/problems/target-sum/submissions/1167260237/_ [//]: # "Getting...
[//]: # "Pull Request Template" [//]: # "Replace the placeholder values in the template below" - **File(s) Modified**: _1888-minimum-number-of-flips-to-make-the-binary-string-alternating_ - **Language(s) Used**: _C++_ - **Submission URL**: _https://leetcode.com/problems/minimum-number-of-flips-to-make-the-binary-string-alternating/submissions/1166318306/_ [//]: # "Getting...
Simplified the logic than existing code [//]: # "Pull Request Template" [//]: # "Replace the placeholder values in the template below" - **File(s) Modified**: 0003-longest-substring-without-repeating-characters.java - **Language(s) Used**: Java -...
- **File(s) Modified**: 0160-intersection-of-two-linked-lists.cpp - **Language(s) Used**: cpp - **Submission URL**: https://leetcode.com/problems/intersection-of-two-linked-lists/submissions/1162573601/ Fix typo of headA and headB.