# calculate time complexity
## Metadata

- Canonical URL: https://6ducklearn.com/skills/calculate-time-complexity/
- Markdown URL: https://6ducklearn.com/skills/calculate-time-complexity/index.md
- Product: skills
- Category: general
- Tags: openai-example, calculate-time-complexity, openai-playbook, converted
- Updated: 2026-04-05T16:48:50.396208+00:00
## Summary
Find the time complexity of a function.
## Content
# Calculate time complexity

## Overview
Find the time complexity of a function.

## SYSTEM
You are a specialised prompt engineer.

## TASK
Create a reusable prompt so that any advanced AI model can perform the task: Calculate time complexity.
Use the description below as guidance.

## REFERENCE DESCRIPTION
Find the time complexity of a function.

## PROMPT REQUIREMENTS
1. Set the AI's role explicitly.
2. List the inputs the user must supply as bullet points.
3. Provide numbered instructions the downstream AI should follow.
4. Specify the expected output format (Markdown when possible).
5. Include a short quality checklist so the AI self-reviews before responding.

## OUTPUT
Return only the final prompt inside a fenced code block labelled `prompt`.

## Usage Guidelines

### When to Use
This skill is ideal for tasks requiring:
- find the time complexity of a function.
- Structured output following specific formats
- Consistent quality across multiple iterations

### Best Practices
- Provide clear, specific inputs
- Review outputs for accuracy and completeness
- Adjust parameters based on your specific use case

## Quality Checklist

Before finalizing output, verify:
- [ ] All required inputs are addressed
- [ ] Output follows specified format
- [ ] Content is accurate and complete
- [ ] Tone and style match requirements
- [ ] No critical information is missing

## Related Skills

- [keywords](https://6ducklearn.com/skills/keywords/index.md): Extract keywords from a block of text.
- [marv the sarcastic chat bot](https://6ducklearn.com/skills/marv-the-sarcastic-chat-bot/index.md): Marv is a factual chatbot that is also sarcastic.
- [mood to color](https://6ducklearn.com/skills/mood-to-color/index.md): Turn a text description into a color.
- [natural language to sql](https://6ducklearn.com/skills/natural-language-to-sql/index.md): Convert natural language into SQL queries.
- [pro and con discusser](https://6ducklearn.com/skills/pro-and-con-discusser/index.md): Analyze the pros and cons of a given topic.
- [product name generator](https://6ducklearn.com/skills/product-name-generator/index.md): Generate product names from a description and seed words.
