gitwtfhub

wtf is algorithm-pattern?

greyireland/algorithm-pattern — explained in plain English

Analysis updated 2026-06-24

15,463GoAudience · developerComplexity · 2/5Setup · easy

TL;DR

A study guide of pattern-based templates for coding interview problems. Written in Chinese with Go examples, ported by the community to other languages.

Mindmap

mindmap
  root((algorithm-pattern))
    Inputs
      Problem prompt
      Reader study time
    Outputs
      Pattern templates
      Worked solutions
      Topic walkthroughs
    Use Cases
      Prep for coding interviews
      Review data structures
      Learn DP and backtracking
    Tech Stack
      Go
      LeetCode
      Markdown

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

Why would anyone build with this?

REASON 1

Drill coding interview patterns like sliding window and DP

REASON 2

Use the Go templates as starting points for new LeetCode problems

REASON 3

Compare a pattern across Python, Java and JavaScript ports

What's in the stack?

GoMarkdown

How it stacks up

greyireland/algorithm-patternpranshuparmar/witrtidwall/gjson
Stars15,46315,46715,488
LanguageGoGoGo
Setup difficultyeasyeasyeasy
Complexity2/52/52/5
Audiencedeveloperops devopsdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · easy Time to first run · 5min

Most content is in Chinese, so non-Chinese readers will need a translator or the community ports.

Wtf does this do

Based on the description, topics, and README structure, this appears to be a study guide for solving algorithmic coding problems, specifically designed to help developers prepare for technical job interviews using LeetCode-style problems. The repository is written primarily in Chinese and provides pattern-based templates (reusable problem-solving approaches) implemented in Go, organized by topic: data structures (binary trees, linked lists, stacks and queues, binary operations) and fundamental algorithms (binary search, sorting, dynamic programming, recursion, sliding window, binary search trees, backtracking). Community contributors have also produced parallel implementations in Swift, Java, Python, C++, C#, JavaScript/TypeScript, and Dart. The README does not provide further detail in English beyond the topic structure and community translations.

Yoink these prompts

Prompt 1
Translate the binary tree pattern templates from Go to Python and explain each step
Prompt 2
Give me a 2-week study plan working through this repo for a FAANG coding interview
Prompt 3
Walk me through the sliding window template and apply it to LeetCode problem 76
Prompt 4
Summarize the dynamic programming chapter in English with one worked example

Frequently asked questions

wtf is algorithm-pattern?

A study guide of pattern-based templates for coding interview problems. Written in Chinese with Go examples, ported by the community to other languages.

What language is algorithm-pattern written in?

Mainly Go. The stack also includes Go, Markdown.

How hard is algorithm-pattern to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is algorithm-pattern for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.