01 Knapsack Problem | Amazon Coding Interview | Dynamic programming | EP5 @JavaAidTutorials
01 Knapsack Problem | Amazon Coding Interview | Dynamic programming | EP5  @JavaAidTutorials
Uploaded August 2019 | Updated December 2026, 1 day ago
Knapsack Problem Using Dynamic programming : -In this video, I have explained the knapsack problem which is the optimization version of subset-sum.
I have used FAST method to solve this DP problem.

Here are the Outlines:
01:47 Knapsack problem
02:17 Knapsack problem variants
0/1 knapsack
fractional knapsack
03:15 Standard Problem statement (0/1 knapsack)
03:40 Example
05:12 Subproblem statement
05:47 Example
06:20 Table filling approach
18:15 Step by step thought process to drive algorithm like pro
23:21 FAST method usage to solve any DP problem
23:36 Recurrence relation
25:08 Recursive solution
27:00 Analyze the solution
29:41 Top-Down approach (Memoization)
Caching on global level
31:26 Cache passed as a method argument
31:55 Bottom-up approach (Tabulation)
35:41 Pattern Analysis
36:37 Demo

πŸ”΄ DONT CLICK THIS: bit.ly/2G4cEuc

❀ FAST Technique To Solve Any DP Problems: youtu.be/ftpbBbtyxdE

πŸ‘ Like us on Facebook: facebook.com/HackerRankSolutionTutorials

πŸ’ŽShare this video with your friend: youtu.be/aL6cU5dWmWM

πŸ’‘ Source code:gist.github.com/kanahaiya/fe684f025624a060d9074b81f4cd8b62

If you wish, translate into local language and help us reach millions of other coder:youtube.com/timedtext_video?v=aL6cU5dWmWM&ref=share


✚ Join our community β–Ί

πŸ‘‰ Coding interview preparation group: facebook.com/groups/codingip
πŸ‘‰ Telegram link for algorithmic tutorial: https://t.me/javaaid
πŸ‘‰ Telegram link for hackerrank solutions: https://t.me/hackerranksolutions

βœ… Recommended playlists β–Ί

πŸ‘‰ Dynamic Programming Tutorial For Beginner: youtube.com/watch?v=ewXklhesC-w&list=PLSIpQf0NbcClDpWE58Y-oSJro_W3LO8Nb
πŸ‘‰ New To JAVAAID ? Watch These Videos: youtube.com/watch?v=pVS3yhlzrlQ&list=PLSIpQf0NbcClvBksfrr_jOpZCraiog3-J
πŸ‘‰ Algorithms Fundamental: youtube.com/playlist?list=PLSIpQf0NbcCk2O05hkxHPtVqGRGtnClh8
πŸ‘‰ Coding Interview Questions: youtube.com/playlist?list=PLSIpQf0NbcCm1HjcbM6aAoDUdpZyS1YBP
πŸ‘‰ All hackerrank solutions: youtube.com/watch?v=oz_yowFTrgs&list=PLSIpQf0NbcCltzNFrOJkQ4J4AAjW3TSmA


πŸ“– Try below problems to master the concept:
Hackerrank problem : hackerrank.com/challenges/unbounded-knapsack/problem

πŸ“– TOP 10 LEARNING RESOURCES

1) Cracking the Coding Interview :amzn.to/30HFJCE
2) Algorithms Hardcover :amzn.to/30Hjdd9
3) The Algorithm Design Manual :amzn.to/2AEtEDL
4) Data Structures & Algorithms in Java :amzn.to/2AG82ag
5) Data Structures and Algorithms Made Easy :amzn.to/2M8UvNK
6) Grokking Algorithms :amzn.to/2LKu8yD
7) Dynamic Programming for Coding Interviews :amzn.to/2AC7BO9
8) Introduction to Algorithms :amzn.to/2oSJAzq
9) Elements of Programming Interviews in Java :amzn.to/30MBjKO
10) Programming Interviews Exposed :amzn.to/2V8mFfO


πŸ‘‹ Let’s Connect β–Ί

Git Hub: github.com/kanahaiya
Twitter: twitter.com/Kanahaiyagupta
Linked in: linkedin.com/in/kanahaiya-gupta
Facebook: facebook.com/coolkanahaiya
Instagram: instagram.com/coolkanahaiya

#JAVAAID #knapsack #subsetsum #leetcode #javaAidTutorials #programming #dataStructures #algorithms #coding #competitiveprogramming #google #java #codinginterview #problemsolving #kanahaiyaGupta #hackerrankchallenges #facebook #amazon #oracle #linkedin
01 Knapsack Problem | Amazon Coding Interview | Dynamic programming | EP5How To Solve Plus Minus HackerRank Problem in JavaHow To Solve HackerRank Drawing Book ProblemJumping On The Clouds HackerRank Solution [One Liner Solution]How To Solve Simple Array Sum HackerRank ProblemLength Of The Longest Consecutive 1s In Binary Representation Of A Number | BitManipulationRepeated String HackerRank Solution [Optimal Approach]Dynamic Programming Techniques | Dynamic Programming Tutorial |  EP2How To Solve Diagonal Difference HackerRank Problem [O(N) Solution] | HackerRank SolutionRecursive Staircase Problem | Climbing Stairs | Walmart Coding Interview | EP3How To Solve Staircase HackerRank Problem in Java [Using one for loop]Google Coding Interview | House Robber LeetCode Solution | Dynamic programming | EP4
JAVAAID - Coding Interview Preparation |

01 Knapsack Problem | Amazon Coding Interview | Dynamic programming | EP5

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER