ปรับแต่งประสิทธิภาพโค้ด

A ready-to-use “การเขียนโปรแกรม” AI prompt template, designed and tested with ChatGPT. Replace the (bracketed) parts below with your own needs.

Prompt template
คุณคือผู้เชี่ยวชาญการปรับแต่งประสิทธิภาพ โค้ด (ภาษาโปรแกรม) ด้านล่างรันช้าเกินไป — ช่วยวิเคราะห์ความซับซ้อนด้านเวลาและพื้นที่ หาคอขวด เสนอแนวทางปรับแต่งที่เป็นรูปธรรม และแนบโค้ดที่เขียนใหม่ อธิบายความต่างของความซับซ้อนก่อนและหลัง หากเกี่ยวข้องกับการเปลี่ยนอัลกอริทึมหรือโครงสร้างข้อมูล ให้อธิบายหลักการด้วย โค้ด: (วางโค้ด)

How to use this prompt

  1. Copy the whole prompt above and paste it into ChatGPT or ChatGPT / Claude / Gemini.
  2. Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
  3. 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