aditya-munday/DSAPractice — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a small C++ practice repo for linked list DSA problems. I’m working through LeetCode and want separate C++ files for problems 92, 141, 142, 203, 206, 234, 237, 328, and 876.

Keep each file in normal LeetCode style with a ListNode definition and a Solution class, so I can copy and paste the code into LeetCode easily. Implement clean solutions for reversing a list, reversing part of a list, detecting a cycle, finding where a cycle starts, removing matching values, checking if a list is a palindrome, deleting a node, odd even list ordering, and finding the middle node.

Add short comments where the logic might be confusing, but don’t overcomplicate it. I mostly want simple, readable C++ solutions that are easy to study later.

Want more depth? Deep Reverse