What this is for

You have a problem and an answer that is too slow, and you do not know which idea to reach for. Tick what you notice. Each thing you notice points at techniques, and the ones pointed at most often come first.

Use it when you are stuck on how to speed something up. Skip it when you already know the technique.

Try it

Tick everything that applies.

The table

This is the same data the tool uses. If the tool does not load, find your row here.

If you noticeTry
The same smaller problem comes up again and againMemoisation, dynamic programming
The order of the items matters or could helpSort first
You keep asking “have I seen this before?”Hash set or map
You need sums or counts over rangesPrefix sums, difference array
You are looking for pairs in sorted dataTwo pointers
You are looking at a run of items that must meet a conditionSliding window
The answer is feasible up to a point and never afterBinary search on the answer
The locally best choice seems safeGreedy, then check the exchange argument
There are links, dependencies or reachabilityGraph model: BFS or DFS, topological sort, union-find
The structure is nested or hierarchicalTree, recursion, stack
n is small and there are choices to makeBacktracking, bitmask
You always need the smallest or largest so farHeap, monotonic stack or queue
The problem splits into independent halvesDivide and conquer

For agents

Run it from the repository, with no browser. The input lists the ids of the signals that apply (see signals in the data file):

node cli.mjs technique-finder '{"signals": ["order", "pairs"]}'

The result is JSON: ok, summary, and matches, a list of {id, label, detail}. Each match is a technique, ranked by how many of your signals point at it; detail names those signals. Ticking nothing, or only unknown ids, gives ok: false.

The logic is /tools/technique-finder/logic.mjs and the data is /tools/technique-finder/data.json. Every example in the data file is checked by npm test.