gitmyhub

fucking-algorithm

Markdown ★ 134k updated 3mo ago

Crack LeetCode, not only how, but also why.

A written guide to solving LeetCode problems by understanding the reasoning behind each solution, not just memorizing code. Includes tutorials on data structures and algorithms with links to practice problems.

MarkdownLeetCodesetup: easycomplexity 1/5

This repository is a written collection of algorithm tutorials by an author who goes by labuladong, framed around solving LeetCode problems. The description, in English, states the goal: crack LeetCode, not only by showing how a given problem is solved but also by explaining why. The author argues that practicing problems matters because it trains a way of thinking, not because it accumulates code snippets, and that copying clever one-line answers from comment sections does not actually teach you to reason through new problems.

Practically, the repo points readers to a partner website where the same articles are organized as a structured course. Each article links to the matching LeetCode question so you can read the explanation and then attempt the problem. The author also describes companion tools: a visualization panel that animates data structures and recursion, and browser and editor plugins for Chrome, VS Code, and JetBrains IDEs that surface the relevant solution while you are looking at a problem. The table of contents lists chapters on language basics, complexity, and a wide range of data structures and algorithms, including arrays, linked lists, queues, stacks, hash tables, binary trees, binary heaps, tries, segment trees, and graph topics.

You would use this repository if you are preparing for coding interviews or trying to build a more solid base in algorithms and data structures, especially if you prefer reading worked-through explanations alongside the actual problems. The articles are written in Markdown, with an English version available on the author's site.

Where it fits