Algorithms & Problem Solving

Algorithms and Problem Solving

تعلّم كيف تفهم المسألة وتختار لها الأسلوب المناسب وتكتب حلها بلغة Java، ثم تثبت أنه صحيح وتعرف تكلفته عندما يكبر حجم البيانات: من الترتيب والبحث الثنائي إلى البرمجة الديناميكية وأقصر المسارات.

سعر الدورة$29 اشتراك مدى الحياة
  • 157درس
  • 15أقسام
  • 91اختبارات
  • 06:04ساعة
  • متوسطالمستوى
عن الدورة

تعرّف على الدورة

تخيّل أنك تبحث عن طلب واحد بين مليون طلب. إذا فحصت الطلبات واحدًا تلو الآخر فقد تحتاج إلى مليون خطوة، أما إذا كانت مرتبة فيكفيك نحو عشرين خطوة. هذا هو الفرق الذي تصنعه الخوارزمية المناسبة. في كورس الخوارزميات وحل المشكلات بالعربي تتعلّم كيف تفهم المسألة، وتختار طريقة حلها، وتتأكد من صحتها، وتعرف كيف تتصرف عندما يكبر حجم البيانات.

تبني الدورة على ما تعلّمته في دورات هياكل البيانات: تستخدم Arrays وHash Maps وStacks وQueues وPriority Queues وGraphs أثناء حل مسائل حقيقية، مثل كشف تعارض الحجوزات، واختيار أكبر عدد من الأنشطة، وترتيب المهام المعتمدة على بعضها، وإيجاد أقصر طريق بأقل تكلفة.

كل درس فيديو قصير مع كود Java تشغّله بنفسك، ثم مختصر كتابي وإنفوجرافيك واختبار قصير، ومساعد ذكي ومحرر كود داخل كل درس.

لماذا تحتاج إلى تعلّم الخوارزميات وحل المشكلات؟

لأن كتابة كود يعمل على مثال صغير لا تكفي. المطلوب أن تعرف هل يعطي الحل الإجابة الصحيحة في كل الحالات المسموحة (Correctness)، وكم يحتاج من وقت وذاكرة عندما يكبر الإدخال (Time & Space Complexity). هذه الطريقة في التفكير هي ما تختبره مقابلات العمل التقنية، وما تحتاجه كل يوم عندما يصبح الحل المباشر بطيئًا.

لماذا يجب أن تشترك في هذه الدورة؟

  • طريقة ثابتة لحل أي مسألة: المدخلات والمخرجات والقيود، ثم مثال يدوي، ثم حل مباشر، ثم تحسين.
  • أكثر من 15 أسلوبًا تتعلّمها بالتطبيق: Recursion وSorting وBinary Search وTwo Pointers وSliding Window وPrefix Sums وBacktracking وGreedy وDynamic Programming وBFS وDFS وDijkstra وBellman-Ford وFloyd-Warshall وTopological Sort.
  • كل حل مكتوب بلغة Java مع تتبّع تنفيذه وحالاته الحدية.
  • تبرير صحة الحل وحساب تكلفته في كل درس، لا حفظ الحلول.
  • تحديات تجمع أكثر من فكرة، ومشروع تطبيقي على الاعتماديات ومسار التنفيذ الحرج.
  • خريطة لاختيار الأسلوب المناسب من قيود المسألة، وخطة تدريب لما بعد الدورة.
  • مختصر كتابي وإنفوجرافيك واختبار قصير بعد كل درس، واختبار لكل قسم، واختبار نهائي.
  • مساعد ذكي ومحرر Java داخل كل درس، ومشرفون يجيبون عن أسئلتك في التعليقات.
  • وصول مدى الحياة مع أي تحديثات، وشهادة إتمام يمكن التحقق منها.

هذه الدورة مناسبة لك إذا كنت:

  • أنهيت دورات هياكل البيانات وتريد أن تستخدمها في حل المسائل.
  • تكتب كودًا يعمل لكنك لا تعرف كيف تثبت صحته أو تحسّن سرعته.
  • تستعد لمقابلات العمل التقنية ومسائل الخوارزميات.
  • طالب علوم حاسب تريد شرحًا عمليًا بالعربية مع كود Java.
  • مبرمج تريد طريقة منظمة تبدأ بها أي مسألة جديدة.

ماذا ستتعلم خطوة بخطوة؟

  • خطوات حل أي مسألة: تحدد المدخلات والمخرجات والقيود، وتحل مثالًا يدويًا، وتكتب الحل المباشر وتحسب تكلفته.
  • الاستدعاء الذاتي: تحل المسألة بالاعتماد على نسخة أصغر منها، وتتتبع الاستدعاءات، وتحسب القوى بسرعة.
  • الترتيب والتقسيم والحل: تطبّق الترتيب بالإدراج والفقاعي والاختيار والدمج والسريع، وتختار بينها حسب الثبات والذاكرة وأسوأ حالة.
  • البحث الثنائي بثقة: تضبط الحدود، وتجد أول وآخر ظهور ومكان الإدراج، وتبحث بحثًا ثنائيًا على الإجابة.
  • المؤشران والنافذة المنزلقة: تقلل العمل المتكرر على المصفوفات والنصوص بأسلوبي Two Pointers وSliding Window.
  • الحساب المسبق والتراجع والجشع: تستخدم المجاميع التراكمية ومصفوفة الفروق، وتولّد الاختيارات بالتراجع، وتعرف متى ينجح الاختيار الجشع.
  • البرمجة الديناميكية: تحفظ نتائج المسائل الفرعية وتبني الجداول لحل صعود السلم والعملات وحقيبة الظهر وأطول تتابع مشترك.
  • الرسوم البيانية وأقصر المسارات: تمثل العلاقات كرسم بياني، وتطبّق BFS وDFS واكتشاف الدورات والترتيب الطوبولوجي وDijkstra وBellman-Ford وFloyd-Warshall.

المتطلبات

  • أساسيات البرمجة بلغة Java: المتغيرات والشروط والحلقات والدوال (Methods) والكائنات بمستوى أساسي.
  • هياكل البيانات: Array وArrayList وStack وQueue وLinked List وTrees وHeap وPriority Queue وHash Map وHash Set.
  • فكرة Big O وTime Complexity وSpace Complexity.
  • متصفح فقط: نكتب الكود في محرر Java أونلاين دون تثبيت أي برنامج.

تشمل الدورة

  • شهادة موثقة
  • قياس مستوى التقدم والانجاز عبر الدورة
  • إجابة من مشرفي الطلاب على كل الأسئلة
  • فاعليات حصرية
  • شارات تميز للطلبة المتقدمين
  • اشعارات تذكير وتحفيز لإنهاء الدورة
  • اشتراك مدى الحياة
سعر الدورة$29 اشتراك مدى الحياة

دفع آمن ووصول فوري للدورة

منهج الدورة

ماذا ستتعلم خطوة بخطوة

اضغط على أي قسم لعرض دروسه. الدروس المجانية متاحة للمشاهدة قبل الاشتراك.

محتوى الدورة

  1. 1
    Course Introduction4 دروس يحتوي على دروس مجانية
    1. Course Overview درس مجاني
    2. Prerequisites درس مجاني
    3. Learning and Practice Workflow درس مجاني
    4. Online Editor Setup درس مجاني
  2. 2
    Problem-Solving Process10 دروس · 6 اختبارات يحتوي على دروس مجانية
    1. Problem Inputs Outputs and Constraints درس مجاني
    2. مختصر كتابي: Problem Inputs Outputs and Constraints درس مجاني
    3. اختبار قصير: Problem Inputs Outputs and Constraints
    4. Manual Walkthrough and Pseudocode درس مجاني
    5. مختصر كتابي: Manual Walkthrough and Pseudocode درس مجاني
    6. اختبار قصير: Manual Walkthrough and Pseudocode
    7. Brute Force and Bottleneck Analysis درس مجاني
    8. مختصر كتابي: Brute Force and Bottleneck Analysis درس مجاني
    9. اختبار قصير: Brute Force and Bottleneck Analysis
    10. Correctness and Test Cases
    11. مختصر كتابي: Correctness and Test Cases
    12. اختبار قصير: Correctness and Test Cases
    13. Counting Conflicting Pairs
    14. مختصر كتابي: Counting Conflicting Pairs
    15. اختبار قصير: Counting Conflicting Pairs
    16. اختبار: Problem-Solving Process
  3. 3
    Recursion10 دروس · 6 اختبارات
    1. Thinking in Smaller Subproblems
    2. مختصر كتابي: Thinking in Smaller Subproblems
    3. اختبار قصير: Thinking in Smaller Subproblems
    4. Base Case and Recursive Step
    5. مختصر كتابي: Base Case and Recursive Step
    6. اختبار قصير: Base Case and Recursive Step
    7. Call Stack and Returning from Calls
    8. مختصر كتابي: Call Stack and Returning from Calls
    9. اختبار قصير: Call Stack and Returning from Calls
    10. Recursion Complexity vs Iteration
    11. مختصر كتابي: Recursion Complexity vs Iteration
    12. اختبار قصير: Recursion Complexity vs Iteration
    13. Fast Exponentiation
    14. مختصر كتابي: Fast Exponentiation
    15. اختبار قصير: Fast Exponentiation
    16. اختبار: Recursion
  4. 4
    Sorting Algorithms and Divide and Conquer16 درسًا · 9 اختبارات
    1. Sorting Introduction and Insertion Sort
    2. مختصر كتابي: Sorting Introduction and Insertion Sort
    3. اختبار قصير: Sorting Introduction and Insertion Sort
    4. Bubble Sort and Early Termination
    5. مختصر كتابي: Bubble Sort and Early Termination
    6. اختبار قصير: Bubble Sort and Early Termination
    7. Selection Sort
    8. مختصر كتابي: Selection Sort
    9. اختبار قصير: Selection Sort
    10. Insertion vs Bubble vs Selection
    11. مختصر كتابي: Insertion vs Bubble vs Selection
    12. اختبار قصير: Insertion vs Bubble vs Selection
    13. Divide and Conquer and Merge Sort
    14. مختصر كتابي: Divide and Conquer and Merge Sort
    15. اختبار قصير: Divide and Conquer and Merge Sort
    16. Quick Sort Pivot and Partitioning
    17. مختصر كتابي: Quick Sort Pivot and Partitioning
    18. اختبار قصير: Quick Sort Pivot and Partitioning
    19. Sorting Stability Space and Worst Case
    20. مختصر كتابي: Sorting Stability Space and Worst Case
    21. اختبار قصير: Sorting Stability Space and Worst Case
    22. Sorting Records with Multiple Criteria
    23. مختصر كتابي: Sorting Records with Multiple Criteria
    24. اختبار قصير: Sorting Records with Multiple Criteria
    25. اختبار: Sorting Algorithms and Divide and Conquer
  5. 5
    Searching and Binary Search10 دروس · 6 اختبارات
    1. Linear Search and Search Space Reduction
    2. مختصر كتابي: Linear Search and Search Space Reduction
    3. اختبار قصير: Linear Search and Search Space Reduction
    4. Iterative Binary Search and Boundaries
    5. مختصر كتابي: Iterative Binary Search and Boundaries
    6. اختبار قصير: Iterative Binary Search and Boundaries
    7. First and Last Occurrence
    8. مختصر كتابي: First and Last Occurrence
    9. اختبار قصير: First and Last Occurrence
    10. Insertion Position Lower Bound and Upper Bound
    11. مختصر كتابي: Insertion Position Lower Bound and Upper Bound
    12. اختبار قصير: Insertion Position Lower Bound and Upper Bound
    13. Binary Search on the Answer
    14. مختصر كتابي: Binary Search on the Answer
    15. اختبار قصير: Binary Search on the Answer
    16. اختبار: Searching and Binary Search
  6. 6
    Two Pointers10 دروس · 6 اختبارات
    1. Two Pointer Patterns
    2. مختصر كتابي: Two Pointer Patterns
    3. اختبار قصير: Two Pointer Patterns
    4. Pair Sum in a Sorted Array
    5. مختصر كتابي: Pair Sum in a Sorted Array
    6. اختبار قصير: Pair Sum in a Sorted Array
    7. Same Direction Pointers and Removing Duplicates
    8. مختصر كتابي: Same Direction Pointers and Removing Duplicates
    9. اختبار قصير: Same Direction Pointers and Removing Duplicates
    10. Opposite Direction Pointers and Palindrome Checking
    11. مختصر كتابي: Opposite Direction Pointers and Palindrome Checking
    12. اختبار قصير: Opposite Direction Pointers and Palindrome Checking
    13. Two Pointer Challenges and Correctness
    14. مختصر كتابي: Two Pointer Challenges and Correctness
    15. اختبار قصير: Two Pointer Challenges and Correctness
    16. اختبار: Two Pointers
  7. 7
    Sliding Window10 دروس · 6 اختبارات
    1. From Recalculation to Window Updates
    2. مختصر كتابي: From Recalculation to Window Updates
    3. اختبار قصير: From Recalculation to Window Updates
    4. Fixed-Size Window and Maximum Subarray Sum
    5. مختصر كتابي: Fixed-Size Window and Maximum Subarray Sum
    6. اختبار قصير: Fixed-Size Window and Maximum Subarray Sum
    7. Variable-Size Window and Minimum-Length Subarray
    8. مختصر كتابي: Variable-Size Window and Minimum-Length Subarray
    9. اختبار قصير: Variable-Size Window and Minimum-Length Subarray
    10. Longest Substring Without Repeating Characters
    11. مختصر كتابي: Longest Substring Without Repeating Characters
    12. اختبار قصير: Longest Substring Without Repeating Characters
    13. Window Expansion and Shrinking Conditions
    14. مختصر كتابي: Window Expansion and Shrinking Conditions
    15. اختبار قصير: Window Expansion and Shrinking Conditions
    16. اختبار: Sliding Window
  8. 8
    Precomputation and Range Queries10 دروس · 6 اختبارات
    1. Precomputation Trade-offs
    2. مختصر كتابي: Precomputation Trade-offs
    3. اختبار قصير: Precomputation Trade-offs
    4. Prefix Sums and Range-Sum Queries
    5. مختصر كتابي: Prefix Sums and Range-Sum Queries
    6. اختبار قصير: Prefix Sums and Range-Sum Queries
    7. Two-Dimensional Prefix Sums
    8. مختصر كتابي: Two-Dimensional Prefix Sums
    9. اختبار قصير: Two-Dimensional Prefix Sums
    10. Difference Arrays and Range Updates
    11. مختصر كتابي: Difference Arrays and Range Updates
    12. اختبار قصير: Difference Arrays and Range Updates
    13. Range Updates and Queries Challenge
    14. مختصر كتابي: Range Updates and Queries Challenge
    15. اختبار قصير: Range Updates and Queries Challenge
    16. اختبار: Precomputation and Range Queries
  9. 9
    Backtracking10 دروس · 6 اختبارات
    1. Choose, Explore, and Undo
    2. مختصر كتابي: Choose, Explore, and Undo
    3. اختبار قصير: Choose, Explore, and Undo
    4. Generating Subsets
    5. مختصر كتابي: Generating Subsets
    6. اختبار قصير: Generating Subsets
    7. Generating Permutations
    8. مختصر كتابي: Generating Permutations
    9. اختبار قصير: Generating Permutations
    10. Pruning Invalid Paths
    11. مختصر كتابي: Pruning Invalid Paths
    12. اختبار قصير: Pruning Invalid Paths
    13. N-Queens
    14. مختصر كتابي: N-Queens
    15. اختبار قصير: N-Queens
    16. اختبار: Backtracking
  10. 10
    Greedy Algorithms10 دروس · 6 اختبارات
    1. Greedy Choices and Counterexamples
    2. مختصر كتابي: Greedy Choices and Counterexamples
    3. اختبار قصير: Greedy Choices and Counterexamples
    4. Activity Selection
    5. مختصر كتابي: Activity Selection
    6. اختبار قصير: Activity Selection
    7. Detecting Booking Conflicts After Sorting
    8. مختصر كتابي: Detecting Booking Conflicts After Sorting
    9. اختبار قصير: Detecting Booking Conflicts After Sorting
    10. Minimum Meeting Rooms with a Priority Queue
    11. مختصر كتابي: Minimum Meeting Rooms with a Priority Queue
    12. اختبار قصير: Minimum Meeting Rooms with a Priority Queue
    13. Greedy Correctness and Practice
    14. مختصر كتابي: Greedy Correctness and Practice
    15. اختبار قصير: Greedy Correctness and Practice
    16. اختبار: Greedy Algorithms
  11. 11
    Dynamic Programming16 درسًا · 9 اختبارات
    1. Overlapping Subproblems
    2. مختصر كتابي: Overlapping Subproblems
    3. اختبار قصير: Overlapping Subproblems
    4. Memoization
    5. مختصر كتابي: Memoization
    6. اختبار قصير: Memoization
    7. Tabulation
    8. مختصر كتابي: Tabulation
    9. اختبار قصير: Tabulation
    10. Climbing Stairs
    11. مختصر كتابي: Climbing Stairs
    12. اختبار قصير: Climbing Stairs
    13. Minimum Coin Change
    14. مختصر كتابي: Minimum Coin Change
    15. اختبار قصير: Minimum Coin Change
    16. 0/1 Knapsack
    17. مختصر كتابي: 0/1 Knapsack
    18. اختبار قصير: 0/1 Knapsack
    19. Longest Common Subsequence
    20. مختصر كتابي: Longest Common Subsequence
    21. اختبار قصير: Longest Common Subsequence
    22. Space Optimization and Solution Reconstruction
    23. مختصر كتابي: Space Optimization and Solution Reconstruction
    24. اختبار قصير: Space Optimization and Solution Reconstruction
    25. اختبار: Dynamic Programming
  12. 12
    Graph Algorithms12 درسًا · 7 اختبارات
    1. Graph Modeling and Representation
    2. مختصر كتابي: Graph Modeling and Representation
    3. اختبار قصير: Graph Modeling and Representation
    4. Graph BFS and Visited Tracking
    5. مختصر كتابي: Graph BFS and Visited Tracking
    6. اختبار قصير: Graph BFS and Visited Tracking
    7. Graph DFS and Connected Components
    8. مختصر كتابي: Graph DFS and Connected Components
    9. اختبار قصير: Graph DFS and Connected Components
    10. Cycle Detection in Undirected Graphs
    11. مختصر كتابي: Cycle Detection in Undirected Graphs
    12. اختبار قصير: Cycle Detection in Undirected Graphs
    13. Cycle Detection in Directed Graphs
    14. مختصر كتابي: Cycle Detection in Directed Graphs
    15. اختبار قصير: Cycle Detection in Directed Graphs
    16. Topological Sorting
    17. مختصر كتابي: Topological Sorting
    18. اختبار قصير: Topological Sorting
    19. اختبار: Graph Algorithms
  13. 13
    Shortest Paths12 درسًا · 7 اختبارات
    1. Unweighted Shortest Paths with BFS
    2. مختصر كتابي: Unweighted Shortest Paths with BFS
    3. اختبار قصير: Unweighted Shortest Paths with BFS
    4. Dijkstra and Relaxation
    5. مختصر كتابي: Dijkstra and Relaxation
    6. اختبار قصير: Dijkstra and Relaxation
    7. Dijkstra with a Priority Queue
    8. مختصر كتابي: Dijkstra with a Priority Queue
    9. اختبار قصير: Dijkstra with a Priority Queue
    10. Path Reconstruction
    11. مختصر كتابي: Path Reconstruction
    12. اختبار قصير: Path Reconstruction
    13. Negative Weights and Bellman–Ford
    14. مختصر كتابي: Negative Weights and Bellman–Ford
    15. اختبار قصير: Negative Weights and Bellman–Ford
    16. All-Pairs Shortest Paths with Floyd–Warshall
    17. مختصر كتابي: All-Pairs Shortest Paths with Floyd–Warshall
    18. اختبار قصير: All-Pairs Shortest Paths with Floyd–Warshall
    19. اختبار: Shortest Paths
  14. 14
    Mixed Algorithm Challenges10 دروس · 6 اختبارات
    1. Choosing an Approach from Constraints
    2. مختصر كتابي: Choosing an Approach from Constraints
    3. اختبار قصير: Choosing an Approach from Constraints
    4. Sorting and Two Pointers Challenge
    5. مختصر كتابي: Sorting and Two Pointers Challenge
    6. اختبار قصير: Sorting and Two Pointers Challenge
    7. Sliding Windows, Prefix Sums, and Hash Maps
    8. مختصر كتابي: Sliding Windows, Prefix Sums, and Hash Maps
    9. اختبار قصير: Sliding Windows, Prefix Sums, and Hash Maps
    10. Backtracking vs. Greedy vs. Dynamic Programming
    11. مختصر كتابي: Backtracking vs. Greedy vs. Dynamic Programming
    12. اختبار قصير: Backtracking vs. Greedy vs. Dynamic Programming
    13. Dependency Planning and Critical Path Project
    14. مختصر كتابي: Dependency Planning and Critical Path Project
    15. اختبار قصير: Dependency Planning and Critical Path Project
    16. اختبار: Mixed Algorithm Challenges
  15. 15
    Course Wrap-Up and Next Steps7 دروس · 4 اختبارات
    1. Algorithm Selection Map
    2. مختصر كتابي: Algorithm Selection Map
    3. اختبار قصير: Algorithm Selection Map
    4. Explaining Correctness and Complexity
    5. مختصر كتابي: Explaining Correctness and Complexity
    6. اختبار قصير: Explaining Correctness and Complexity
    7. Practice Plan and Mistake Review
    8. مختصر كتابي: Practice Plan and Mistake Review
    9. اختبار قصير: Practice Plan and Mistake Review
    10. Course Outro and Further Learning
    11. اختبار: Course Wrap-Up and Next Steps
  1. الاختبار النهائي
    1. الاختبار النهائي
المعلم

تعلّم على يد أحمد فتحي

  • أحمد فتحي
    أحمد فتحي Founder & CEO, Almdrasa

    مؤسس منصة المدرسة، ومهندس برمجيات رئيسي ومعماري سحابة ومدير، عمل مع شركات ناشئة مثل QbDVision وRewaaTech، ويحمل شهادتي AWS Architect وProfessional Scrum Master. يقدّم استشارات مهنية تساعد على تحويل تحديات العمل إلى خطوات عملية.

لديك سؤال؟

الأسئلة الشائعة

لمن أنهى أساسيات البرمجة وهياكل البيانات ويريد أن يتعلّم كيف يحل المسائل البرمجية بطريقة منظمة، سواء كان طالبًا أو مبرمجًا يستعد لمقابلات العمل التقنية.

أساسيات Java، وهياكل البيانات الأساسية مثل Arrays وStacks وQueues وTrees وHash Maps، وفكرة Big O. في بداية الدورة درس يراجع هذه المتطلبات مع أسئلة قصيرة تكشف لك ما يحتاج إلى مراجعة.

كل الأمثلة والحلول بلغة Java، والأفكار نفسها تصلح لأي لغة برمجة.

لا. نكتب الكود ونشغّله في محرر Java أونلاين من المتصفح، وفي كل درس محرر كود ومساعد ذكي داخل المنصة. ويمكنك استخدام بيئة التطوير على جهازك إذا كنت تفضّلها.

نعم، الدروس مسجلة وقصيرة، تشاهدها في أي وقت يناسبك، ويبقى وصولك إليها مدى الحياة مع أي تحديثات مستقبلية.

الشرح بالعربية باللهجة المصرية بأسلوب بسيط، مع المصطلحات التقنية بالإنجليزية كما تُستخدم في العمل، ومختصر كتابي بالعربية الفصحى بعد كل درس.

نعم، بعد إتمام الدروس واجتياز الاختبارات تحصل على شهادة إتمام يمكن التحقق منها عبر الموقع.

اكتب سؤالك في التعليقات أسفل أي درس وسيجيبك المشرفون، كما يتوفر مساعد ذكي داخل كل درس.

يمكنك الدفع بالبطاقات البنكية، وبالمحافظ الإلكترونية داخل مصر، أو عبر PayPal، والاشتراك لمرة واحدة مدى الحياة.

ابدأ حل المسائل بثقة اليوم

تعلّم كيف تختار الأسلوب المناسب وتثبت صحة حلك بلغة Java، وابدأ بالدروس المجانية الآن.