How would you feel about a LeetCode-style DSA series, but every problem is themed after movies like Stranger Things, Harry Potter, or the MCU?
Posted by Suspicious-Gift-2051@reddit | learnprogramming | View on Reddit | 5 comments
I’ve been grinding Data Structures and Algorithms lately, and honestly, the "Given an array of integers nums..." prompts are starting to make my eyes bleed.
I started rewriting some classic problems to make them more engaging. For example:
- Stranger Things: Using BFS/DFS to find the shortest path through the Upside Down while avoiding Vecna’s gates.
- Harry Potter: Implementing a Trie (Prefix Tree) to manage a database of spells or using a Priority Queue for the Goblet of Fire selections.
- Inception: Managing nested Recursion depth (levels of a dream) without hitting a stack overflow.
The Question: Would you actually find this helpful/fun for learning, or is it just unnecessary fluff? If you’re into the idea, what movies or specific scenes do you think would make for a killer DSA problem?
Any-Bus-8060@reddit
This is actually a great idea
makes problems more memorable without changing the core logic
Just keep the story simple so it doesn’t make the question harder to understand, better for revision than first time learning, but still useful
tman2747@reddit
Very niche hopefully you’re not trying to sell it
VikingKingMoore@reddit
You’re on to something here, I have adhd and this is how I passed exams for multiple different subjects in college.
SubjectActive3205@reddit
That inception recursion thing is genius, managing dream layers without stack overflow would actually make the concept stick better in memory
AutoModerator@reddit
To all following commenters: please, do not bring up the old circlejerk jokes/memes about recursion ("Understanding recursion...", "This is recursion...", etc.). We've all heard them n+2 too many times.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.