fucking-algorithm

labuladong

A popular Chinese-language set of algorithm articles that teaches LeetCode problem types through reusable patterns and frameworks, explaining why solutions work rather than listing code. An English version is available on its website.

MarkdownCreated

What is labuladong/fucking-algorithm?

This is a popular Chinese-language set of algorithm articles by the author labuladong, built around more than sixty original essays on LeetCode problems. Rather than listing solutions, the articles teach the thinking behind each problem type and the reusable frameworks that solve whole families of questions, so the reader learns to transfer an approach to new problems. An English version is published on the author's website.

The repository is organised as a table of contents over the articles, and it is aimed at readers who want to understand why a solution works rather than memorise code. The author has built a following around the material, and it is widely used in Chinese-speaking interview preparation.

It suits Chinese-speaking candidates preparing for algorithm interviews, and learners who prefer explanations of technique over long problem lists.

algorithmscomputer-sciencedata-structuresdynamic-programmingdynamic-programming-algorithminterview-questionskmpleetcode