Skip to content

russhustle/leetpattern

Repository files navigation

Welcome to 🚀LeetPattern

GitHub stars GitHub tag (latest by date) GitHub last commit License

Thank you for visiting this project! If you find it helpful or interesting, please consider giving it a ⭐️ on GitHub. It helps others discover the project and motivates me to keep improving it. Your support means a lot! 😊

LeetPattern
📚 This is a collection of patterns for solving LeetCode problems. The goal is to provide a structured approach to solving problems and to help you build a strong foundation in algorithms and data structures.

Prerequisites

python distilled

Resources

<iframe src="https://docs.google.com/presentation/d/e/2PACX-1vTn_gElbkX3P669Dq7pBKHaQdmKhq8oWuf6NGq6imJxujw1eexYkpMgtw7GKlN_3xjle6jqBUPUpPkp/embed?start=false&loop=false&delayms=3000" frameborder="0" width="960" height="569" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>

Steps to Solve DP Problems

  1. Define the dp array and its meaning.
  2. Define the dp formula.
  3. Initialize the dp array.
  4. Determine the traversal direction.
  5. Derive the dp array.