leetcode-patterns README

The project's README from github.com/seanprashad/leetcode-patterns. As one markdown file: README.md.

Leetcode Patterns

Deploy to GitHub Pages Update Questions

Table of Contents

Background

This repo is intended for any individual wanting to improve their problem solving skills for software engineering interviews.

Problems are grouped under their respective subtopic, in order to focus on repeatedly applying common patterns rather than randomly tackling questions.

All questions are available on leetcode.com with some requiring leetcode premium.

Fundamentals

To find the greatest amount of success when practicing, it is highly recommended to know the methods and runtimes of the following data structures and their operations:

In addition, you should have a good grasp on common algorithms such as:

Notes

This pdf contains information for the main data structures in Java.

Other useful methods to know include substring(), toCharArray(), Math.max(), Math.min(), and Arrays.fill().

Question List

The entire question list can be found here: https://seanprashad.com/leetcode-patterns/.

Solutions

Solutions written in Java can be found in the solutions branch.

Contributing

The app is built with Next.js (App Router), React 19, TypeScript, Tailwind CSS v4, TanStack Table v8, Lucide React for icons, and Google Analytics via @next/third-parties. Tests use Vitest + React Testing Library.

npm install
npm run dev         # http://localhost:3000
npm test            # single run
npm run test:watch  # watch mode

A Husky pre-push hook runs npm test automatically before every push. This is set up for every clone via the prepare script.

Acknowledgements

This list is heavily inspired from Grokking the Coding Interview with additional problems extracted from the Blind 75 list and this hackernoon article on 14 patterns to ace any coding interview question.

leetcode-patterns (seanprashad/leetcode-patterns)

supabase
Searching Database…

What is this?A curated, pattern-based study guide that groups LeetCode interview questions by the algorithmic pattern they test, so you repeatedly practice the same technique instead of randomly jumping between unrelated problems.
Is this just a markdown list, or is there an actual website to browse the problems?It is a live web app built with Next.js, React and TanStack Table that renders the question list, not just a static README table.
How do I actually use it to practice?Browse the question list by subtopic/pattern on the site and solve each linked problem directly on leetcode.com, repeating the same pattern across multiple problems before moving to the next one.
Do I need a LeetCode premium subscription to solve everything?No account is required just to browse the list, but a subset of the linked problems are LeetCode-premium-only.
Are solutions provided for every problem here?Solutions aren't shown inline; they're written in Java and kept on a separate 'solutions' git branch instead.
What data structures and algorithms should I brush up on first?The README recommends knowing arrays, maps, linked lists, queues, heaps, stacks, trees and graphs, plus algorithms like breadth-first search, depth-first search, binary search and recursion.
What inspired the pattern-based structure?The list is heavily inspired by 'Grokking the Coding Interview', with extra problems pulled from the Blind 75 list and a Hackernoon article on 14 patterns to ace any coding interview question.
Is there anything to help with Java-specific syntax?Yes, a linked PDF covers key Java methods useful for solving the problems, like substring(), toCharArray(), Math.max() and Math.min().
Size
11.2 MB
Stars
14.2K
Updated
CommitOct 16
Age
7y
Commits · 90 Days