Prompts Forms Resume Reports ★ Saved ★ Saved★ + Submit a tool

Algorithms: draw the process, then write code

Give the complexity analysis and variations

10 copies / views

Prompt

Copy it whole, then replace the brackets with your own content
Teach me: Algorithms - draw the process, then write code.

My level: [beginner/experienced]
Requirements: complexity analysis and variants. Test me first, then teach; give one example in each section.

Replace the text in [ ] with your own situation; ask long tasks in stages.

How to get better results

Read this before you fill it in
When to use it

Learning algorithms: understand the process before writing code.

Output requirements

Start with a concrete example, then the definition; no more than three sentences per paragraph; finish with three self-test questions and answers.

Filled-in example
Explain "sliding window": draw the process, then write the code, then give three variation exercises.
Common pitfalls

Memorizing templates without understanding No variations practiced Ignoring complexity

How to follow up

If I didn't understand, re-explain with an everyday analogy, don't repeat the same words.

Kimi Moonshot AI icon
Kimi Moonshot AIKimi, from Moonshot AI, is a long-context conversational tool. Its most typical use is dropping in PDFs, Word or Excel files, or web links dozens of pages long, then asking questions after it has read them. It also does web search with cited sources and handles code and formulas. It runs on the web, as an app, and as a browser extension. Basic conversation is free; very long documents, heavy use, and response speed during peak hours may be affected by quotas and membership level. It is not for generating images and video, nor for medical or legal conclusions that must be absolutely accurate.
View tool

More like this: Learning prompts · All prompts

Other prompts in this scenario