leetcode
leetcode copied to clipboard
Leetcode solutions
Bug Report for https://neetcode.io/problems/longest-consecutive-sequence Please describe the bug below and include any steps to reproduce the bug or screenshots if possible. Hi, for this question, you should iterate over the...
Bug Report for https://neetcode.io/problems/python-docstrings Screenshots attached to show the bug with my code version and your version as example provide. Your version ex. ``` class Pet: """A class to represent...
Bug Report for https://neetcode.io/problems/remove-duplicates-from-sorted-array Please describe the bug below and include any steps to reproduce the bug or screenshots if possible. My code for the problem Remove Duplicates From Sorted...
Bug Report for https://neetcode.io/problems/copy-linked-list-with-random-pointer The following solution passes in LeetCode but fails in NeetCode - the logic is correct and I keep getting the error `[[3,null],[7,3],[4,0],[5,1]] The node with value...
Bug Report for https://neetcode.io/problems/online-stock-span In neetcode.io , my code shows accepted. but timelimit exceeded on leetcode. ``` class StockSpanner: def __init__(self): self.prices = [] def next(self, price: int) -> int:...
Bug Report for https://neetcode.io/problems/find-duplicate-integer Please describe the bug below and include any steps to reproduce the bug or screenshots if possible. Test case 1 is not correct as a number...
Bug Report for https://neetcode.io/problems/boats-to-save-people Please describe the bug below and include any steps to reproduce the bug or screenshots if possible. ``` func numRescueBoats(people []int, limit int) int { sort.Ints(people)...
Bug Report for https://neetcode.io/problems/reverse-integer Please describe the bug below and include any steps to reproduce the bug or screenshots if possible. Shouldn't the time complexity for the 3. Iteration be...
Bug Report for https://neetcode.io/problems/python-unpacking Please describe the bug below and include any steps to reproduce the bug or screenshots if possible. - As you can see in the picture, the...
Bug Report for https://neetcode.io/problems/gpt-dataset Please describe the bug below and include any steps to reproduce the bug or screenshots if possible. class Solution: def batch_loader(self, raw_dataset: str, context_length: int, batch_size:...