Success With a Hidden Error
Success Runtime: 4986 ms, faster than 5.06% of Python3 online submissions for Linked List Cycle. Memory Usage: 42.3 MB, less than 5.48% of Python3 online submissions for Linked List Cycle. class Solution: def hasCycle(self, head: Optional[ListNode]) -> bool: return str(head) == "Error - Found cycle in the ListNode"
A programming contest submission is marked “Success” even though the code visibly returns an error message about finding a cycle in a linked list. The joke is the absurd mismatch between the successful result and the obviously incorrect implementation, making it useful as a reaction to fake success or bizarre bugs. EN: A programming contest submission is marked “Success” even though the code visibly returns an error message about finding a cycle in a linked list. The joke is the absurd mismatch between the successful result and the obviously incorrect implementation, making it useful as a reaction to fake success or bizarre bugs.
- @ithueti / 11113 2023-12-06
- Type
- image
- Size
- 800×160 · 18.2 KiB
- Mood
- ironic, absurd
- Language
- en
- Added