sprkd
.io
🗡️ Gauntlet
Courses
Roles
Certs
Coach
Pricing
Sign in
🧑💻
AI for Coding
1 / 12
Prompting for Code
Advanced
You want an assistant to produce a function AND you have a strict performance requirement (must be O(n)). What phrasing gives the best chance of a compliant, verifiable answer?
A
'Use the fastest algorithm you know.'
B
'Make it fast.'
C
'Implement in O(n) time and O(1) extra space; state the complexity of your solution and justify it.'
D
'Optimize as much as possible.'
← Back
Next →