leetcode
leetcode copied to clipboard
Leetcode solutions
Bug Report for https://neetcode.io/problems/remove-duplicates-from-sorted-array ## Issue The 'Remove duplicates from sorted array' submission (linked above) seems to incorrectly fail on one of the larger input test cases (pasted test case...
Bug Report for https://neetcode.io/problems/python-counter Please describe the bug below and include any steps to reproduce the bug or screenshots if possible. Not sure where to put this, but I figure...
Bug Report for https://neetcode.io/problems/python-hash-map-basics Minor error in the description my_dict = {'a': 1, 'b': 2} del my_dict['a'] # {} **← this should be # {'b': 2}** my_dict.pop('b') # {} my_dict.pop('c')...
Bug Report for https://neetcode.io/problems/two-integer-sum Please describe the bug below and include any steps to reproduce the bug or screenshots if possible. issue:mAmbiguous phrasing in problem description In the statement: “Return...
Bug Report for https://neetcode.io/problems/valid-tree Please describe the bug below and include any steps to reproduce the bug or screenshots if possible. Wrong solution is accepted (the dfs return value is...
Bug Report for https://neetcode.io/problems/majority-element-ii Please describe the bug below and include any steps to reproduce the bug or screenshots if possible. For this problem it says that the returned array...
Bug Report for https://neetcode.io/problems/top-k-elements-in-list Please describe the bug below and include any steps to reproduce the bug or screenshots if possible. class Solution: def topKFrequent(self, nums: List[int], k: int) ->...
Bug Report for https://neetcode.io/problems/max-water-container perfect code but says there is time complexity problem Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.
Bug Report for https://neetcode.io/problems/is-palindrome Please describe the bug below and include any steps to reproduce the bug or screenshots if possible. On my PC, it returns False for "OP" but...
Bug Report for https://neetcode.io/problems/sql-delete-returning The example code blocks have some syntax issues. 1. Invalid `NULL` comparison 2. Premature statement terminator before `RETURNING` clause **Original** ```sql DELETE FROM users WHERE username...