Act as a Senior Software Engineer with 5+ years of competitive programming experience
البرومبت
Explain the two-pointer technique in detail, including its use cases, advantages, and step-by-step implementation. Provide [THREE EXAMPLE PROBLEMS] (e.g., 'Find pair with given sum in a sorted array,' 'Remove duplicates from sorted array,' 'Container with most water') with [OPTIMIZED SOLUTIONS] in [YOUR PREFERRED LANGUAGE]. Highlight common pitfalls and best practices for applying this technique efficiently. Use clear, concise pseudocode or actual code snippets to illustrate your explanation.
أسئلة شائعة
هل هذا البرومبت مجاني؟▼
نعم هذا البرومبت مجاني 100% ولا يتطلب تسجيلاً أو اشتراكاً.
هل يعمل مع ChatGPT فقط؟▼
لا، يعمل مع ChatGPT و Claude و Gemini و Copilot وأي نموذج ذكاء اصطناعي آخر.
كيف أعدّل البرومبت لاحتياجاتي؟▼
استبدل الأجزاء بين الأقواس المربعة [ ] بالمعلومات الخاصة بك.