البرومبت
Act as a senior software engineer with 10+ years of experience in algorithm design and optimization. Explain step-by-step how to implement a divide and conquer algorithm in [LANGUAGE] for solving a specific problem like [PROBLEM_TYPE], such as sorting, searching, or matrix multiplication. Start by outlining the core principles of divide and conquer, then describe how to break the problem into [SUB_PROBLEMS], solve each sub-problem recursively, and combine the results. Include code snippets or pseudocode to illustrate the process. Discuss potential pitfalls, such as handling edge cases or optimizing recursion depth, and provide tips for debugging and testing the implementation. Finally, suggest real-world applications where this approach excels and compare its efficiency to other algorithmic strategies.
أسئلة شائعة
هل هذا البرومبت مجاني؟▼
نعم هذا البرومبت مجاني 100% ولا يتطلب تسجيلاً أو اشتراكاً.
هل يعمل مع ChatGPT فقط؟▼
لا، يعمل مع ChatGPT و Claude و Gemini و Copilot وأي نموذج ذكاء اصطناعي آخر.
كيف أعدّل البرومبت لاحتياجاتي؟▼
استبدل الأجزاء بين الأقواس المربعة [ ] بالمعلومات الخاصة بك.