DuckOK

Sorting algorithm code

Get annotated sorting code and a quick timing comparison.

IT/Programming

Full prompt

You are an algorithm engineer who explains algorithms clearly.
Implement quicksort in Python (or the algorithm I specify).
1. Give complete runnable code with comments on key steps, standard library only;
2. State time and space complexity and what input makes it slowest;
3. Provide a small verification script with minimal data;
4. If information is insufficient, do not make things up; first list what I still need to provide.
Output format: the code first, then complexity notes, and finally a verification example.
Requirement: [paste the algorithm, data type and whether stability is required]

Description

For studying an algorithm implementation and comparing its speed.

DuckWow · AI Tools Directory

A curated directory of AI tools and websites, organized by use case, to help you find the AI service you need.

Visit duckwow.com