explaingit

yuanguangxin/leetcode

7,489JavaAudience · developerComplexity · 1/5Setup · easy

TLDR

Personal collection of Java solutions to LeetCode coding problems organized by algorithm type, hash tables, dynamic programming, trees, and more, plus interview prep notes, with README in Chinese.

Mindmap

mindmap
  root((LeetCode Java))
    Algorithm types
      Hash tables
      Dynamic programming
      Backtracking
      Tree traversal
    Problem patterns
      Two pointer
      Sliding window
      Divide and conquer
    Study aids
      Interview notes
      Organized by technique
      English README link
    Audience
      Interview prep
      Java developers
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Study dynamic programming patterns by browsing Java solutions grouped by technique rather than problem number.

USE CASE 2

Compare your LeetCode approach to another developer's Java implementation across categories like backtracking or sliding window.

USE CASE 3

Prepare for software engineering interviews by reading the companion interview notes alongside the organized code solutions.

Tech stack

Java

Getting it running

Difficulty · easy Time to first run · 5min
No license information found in this repository.

In plain English

This repository is a personal collection of Java solutions to LeetCode coding problems, organized by the type of algorithm or data structure each problem uses. LeetCode is a popular platform where programmers practice solving algorithmic puzzles, commonly used to prepare for technical job interviews at software companies. The problems are grouped into categories rather than by problem number. Categories include hash tables, linked list operations, two-pointer and sliding window techniques, string manipulation, number operations, arrays, stacks, heaps, recursion, divide and conquer, dynamic programming, backtracking, prefix trees, and various tree traversal methods. Each category contains links to the specific problem folders in the repository, where you can find the Java code. The repository also includes a separate section collecting interview preparation notes, linked from a file called Rocket.md. The README is written in Chinese, and an English version is available at a separate link. This is a study and reference resource aimed at programmers preparing for technical interviews. It is not a library or tool you install into a project. If you want to browse solutions organized by technique rather than problem number, or see how a particular algorithmic pattern applies across multiple problems, this repository provides that structure.

Copy-paste prompts

Prompt 1
I'm working through two-pointer LeetCode problems. Show me a Java sliding window solution and explain why this approach is more efficient than using nested loops.
Prompt 2
Walk me through a Java LeetCode solution for a dynamic programming problem, explain the state definition and the transition logic step by step.
Prompt 3
I'm preparing for technical interviews. Give me 5 LeetCode problems covering hash tables, linked lists, and backtracking with Java solutions and explanations for each.
Open on GitHub → Explain another repo

← yuanguangxin on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.