Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
DSA in Python - Geek's Training | 2D DP on Activities | GFG Practice | Part 195 [Hindi]
Play lesson

Data Structures and Algorithms with Python | Free DSA with Python Course - DSA in Python - Geek's Training | 2D DP on Activities | GFG Practice | Part 195 [Hindi]

5.0 (2)
23 learners

What you'll learn

This course includes

  • 73.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Data Structures and Algorithms with Python | Free DSA with Python Course DSA in Python - Geek's Training | 2D DP on Activities | GFG Practice | Part 195 [Hindi]

DSA in Python - Geek's Training | 2D DP on Activities | GFG Practice | Part 195 [Hindi] Transcript and Lesson Notes

📘 Welcome to Part 195 of Code & Debug’s DSA in Python Course! In this video, we tackle the classic 2D dynamic programming problem: Geek's Training from GeeksforGeeks. Each day, Geek must choose between Running, Fighting

Quick Summary

📘 Welcome to Part 195 of Code & Debug’s DSA in Python Course! In this video, we tackle the classic 2D dynamic programming problem: Geek's Training from GeeksforGeeks. Each day, Geek must choose between Running, Fighting

Key Takeaways

  • Review the core idea: 📘 Welcome to Part 195 of Code & Debug’s DSA in Python Course! In this video, we tackle the classic 2D dynamic programming problem: Geek's Training from GeeksforGeeks. Each day, Geek must choose between Running, Fighting
  • Understand how python fits into DSA in Python - Geek's Training | 2D DP on Activities | GFG Practice | Part 195 [Hindi].
  • Understand how geek's fits into DSA in Python - Geek's Training | 2D DP on Activities | GFG Practice | Part 195 [Hindi].
  • Understand how training fits into DSA in Python - Geek's Training | 2D DP on Activities | GFG Practice | Part 195 [Hindi].
  • Understand how activities fits into DSA in Python - Geek's Training | 2D DP on Activities | GFG Practice | Part 195 [Hindi].

Key Concepts

Full Transcript

📘 Welcome to Part 195 of Code & Debug’s DSA in Python Course! In this video, we tackle the classic 2D dynamic programming problem: Geek's Training from GeeksforGeeks. Each day, Geek must choose between Running, Fighting, and Learning, but cannot perform the same activity on consecutive days. We'll implement all 4 approaches, evolving from pure recursion to the optimal space-optimized DP solution, just as explained in our companion article. This is a perfect exercise to master DP state management by introducing an extra dimension (task/day), frequently seen in advanced DP interview questions. 👨🏫 What's covered in this video: 1. Problem statement and key constraints 2. Approach 1: Brute Force Recursion 3. Approach 2: Memoization (Top-Down DP) 4. Approach 3: Tabulation (Bottom-Up DP) 5. Approach 4: Space-Optimized Tabulation 6. Full Python code walkthrough for each approach 7. Dry run examples & transition explanations 8. State definition: f(day, last_task) 9. Complexity analysis and summary 10. Interview tips on how “activity restriction” drives DP state By the end of this session, you’ll confidently model and solve complex 2D DP problems! 🔗 GFG Problem – Geek’s Training: https://www.geeksforgeeks.org/problems/geeks-training/1 🔗 In-depth Article with Code and Explanations: https://codeanddebug.in/blog/geeks-training/ 📄 Full Playlist Sheet (All Questions in Order): https://docs.google.com/spreadsheets/d/1AWE15Fy3wD2iqu2vjK_R7cCiuvSsjYQclcdZmHpF66o/edit?usp=sharing 🎓 Enroll in the FREE Python DSA Course: https://codeanddebug.in/course/master-dsa-with-leetcode 🚀 Advance Python DSA for FAANG (Zero to Hero Course): https://codeanddebug.in/course/zero-to-hero-python-dsa Stay focused and keep coding with Code & Debug. Like | Share | Subscribe | Hit the 🔔 #GeeksTraining #DynamicProgramming #2DDP #Memoization #Tabulation #SpaceOptimization #PythonDSA #GFGPractice #CodeAndDebug #Part195 #ActivitySelection #DSAPatterns #InterviewPrep

Lesson FAQs

What is DSA in Python - Geek's Training | 2D DP on Activities | GFG Practice | Part 195 [Hindi] about?

📘 Welcome to Part 195 of Code & Debug’s DSA in Python Course! In this video, we tackle the classic 2D dynamic programming problem: Geek's Training from GeeksforGeeks. Each day, Geek must choose between Running, Fighting

What key concepts are covered in this lesson?

The lesson covers python, geek's, training, activities, practice.

What should I learn before DSA in Python - Geek's Training | 2D DP on Activities | GFG Practice | Part 195 [Hindi]?

Review the previous lessons in Data Structures and Algorithms with Python | Free DSA with Python Course, then use the transcript and key concepts on this page to fill any gaps.

How can I practice after this lesson?

Practice by applying the main concepts: python, geek's, training, activities.

Does this lesson include a transcript?

Yes. The full transcript is visible on this page in indexable HTML sections.

Is this lesson free?

Yes. CourseHive lessons and courses are available to learn online for free.

Continue Learning

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Lessons

Related Courses

FAQs

Course Hive
Download CourseHive and keep learning anywhere
Get App