Skip to main content
Sproutern LogoSproutern
InterviewsGamesBlogToolsAbout
Sproutern LogoSproutern
Donate
Sproutern LogoSproutern

Your complete education and career platform. Access real interview experiences, free tools, and comprehensive resources to succeed in your professional journey.

Company

About UsContact UsSuccess StoriesOur MethodologyBlog❤️ Donate

For Students

Find InternshipsScholarshipsCompany ReviewsCareer ToolsFree ResourcesCollege PlacementsSalary Guide

🌍 Study Abroad

Country Guides🇩🇪 Study in Germany🇺🇸 Study in USA🇬🇧 Study in UK🇨🇦 Study in CanadaGPA Converter

Resources

Resume TemplatesCover Letter SamplesInterview Cheat SheetResume CheckerCGPA ConverterIT CertificationsDSA RoadmapInterview QuestionsFAQ

Legal

Privacy PolicyTerms & ConditionsCookie PolicyDisclaimerSitemap Support

© 2026 Sproutern. All rights reserved.

•

Made with ❤️ for students worldwide

Follow Us:
    ← DSA Roadmap
    🧩
    Topic #7

    Dynamic Programming

    DP is the most asked topic at FAANG. Master memoization, tabulation, and common DP patterns.

    Time

    Varies by problem — typically O(n²) or O(n*W)

    Space

    O(n) to O(n²)

    Problems

    6 must-do

    Key Patterns

    0/1 Knapsack
    Unbounded Knapsack
    LCS/LIS
    Matrix Chain
    Fibonacci Type
    Partition DP
    DP on Strings

    📋 Must-Do Problems

    #ProblemDifficultyAsked At
    1Climbing Stairs
    Easy
    Google
    Amazon
    Adobe
    2Longest Increasing Subsequence
    Medium
    Google
    Amazon
    Microsoft
    3Coin Change
    Medium
    Amazon
    Microsoft
    Goldman Sachs
    4Longest Common Subsequence
    Medium
    Google
    Amazon
    Meta
    5Edit Distance
    Medium
    Google
    Amazon
    Microsoft
    6Regular Expression Matching
    Hard
    Google
    Meta
    Amazon

    💡 Key Concepts

    1.

    Two approaches: Top-down (memoization) and Bottom-up (tabulation)

    2.

    Identify: optimal substructure + overlapping subproblems

    3.

    State definition is the hardest part — what do we need to remember?

    4.

    Space optimization: often can reduce from O(n²) to O(n) using rolling arrays

    Continue Practicing

    DSA Roadmap DSA Interview Q&A Practice Games