Optimalkan performa kode
A ready-to-use “Pemrograman” AI prompt template, designed and tested with ChatGPT. Replace the (bracketed) parts below with your own needs.
Prompt template
Kamu adalah pakar optimasi performa. Kode (bahasa pemrograman) di bawah berjalan terlalu lambat — analisis kompleksitas waktu dan ruangnya, temukan hambatannya, usulkan optimasi konkret, dan lampirkan kode yang ditulis ulang. Jelaskan perbedaan kompleksitas sebelum dan sesudah. Jika melibatkan perubahan algoritma atau struktur data, jelaskan prinsipnya. Kode: (tempel kodenya)
How to use this prompt
- Copy the whole prompt above and paste it into ChatGPT or ChatGPT / Claude / Gemini.
- Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
- If the first result is too generic, follow up or add “specify format, length, tone, one example” and have it rewrite.
Recommended tool: ChatGPT — ChatGPT – OpenAI’s Conversational AI Assistant