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)

Searching Database…

这是什么?这是一份精选的、按解题模式组织的学习指南,将 LeetCode 面试题按其考察的算法模式分组,让你反复练习同一种技巧,而不是在互不相关的题目之间随意跳来跳去。
这只是一个 Markdown 列表,还是有一个可以浏览题目的网站?这是一个用 Next.js、React 和 TanStack Table 构建的在线 Web 应用,用来展示题目列表,而不只是一个静态的 README 表格。
我到底该怎么用它来练习?在网站上按子主题或模式浏览题目列表,直接在 leetcode.com 上解决每道链接的题目;在同一模式下多做几道题,再进入下一个模式。
要解决所有题目,我需要 LeetCode 高级会员吗?只浏览题目列表不需要账号,但其中有一部分链接的题目仅限 LeetCode 会员使用。
这里每道题都提供了解答吗?解答不会直接显示在页面中;它们用 Java 编写,保存在单独的 'solutions' git 分支上。
我应该先复习哪些数据结构和算法?README 建议先掌握数组、映射、链表、队列、堆、栈、树和图,以及广度优先搜索、深度优先搜索、二分查找和递归等算法。
这种基于模式的结构受到什么启发?题目列表主要受 'Grokking the Coding Interview' 启发,并额外收录了 Blind 75 列表中的题目,以及 Hackernoon 上一篇关于能应对任何编程面试题的 14 种模式的文章。
有没有什么资料能帮助理解 Java 特定的语法?有的,一个附带的 PDF 介绍了解题时有用的几个关键 Java 方法,如 substring()、toCharArray()、Math.max() 和 Math.min()。
Size
11.2 MB
Stars
14.2K
Updated
CommitOct 16
Age
7y
Commits · 90 Days