Act as a Senior Software Engineer with 10+ years of experience in algorithm design
البرومبت
Explain how to implement a backtracking algorithm for solving [PROBLEM_TYPE], such as the N-Queens problem or Sudoku. Describe the key components, including [BASE_CASE], [RECURSIVE_CASE], and [PRUNING_CONDITIONS]. Provide a step-by-step breakdown in [LANGUAGE], such as Python or Java, with clear examples of how the algorithm explores potential solutions and backtracks when constraints are violated. Highlight best practices for optimizing performance and avoiding common pitfalls.
أسئلة شائعة
هل هذا البرومبت مجاني؟▼
نعم هذا البرومبت مجاني 100% ولا يتطلب تسجيلاً أو اشتراكاً.
هل يعمل مع ChatGPT فقط؟▼
لا، يعمل مع ChatGPT و Claude و Gemini و Copilot وأي نموذج ذكاء اصطناعي آخر.
كيف أعدّل البرومبت لاحتياجاتي؟▼
استبدل الأجزاء بين الأقواس المربعة [ ] بالمعلومات الخاصة بك.