DP 24. Rod Cutting Problem | 1D Array Space Optimised Approach

Description

Lecture Notes/C++/Java Codes: https://takeuforward.org/dynamic-programming/striver-dp-series-dynamic-programming-problems/

Problem Link: https://bit.ly/3H10kYJ

Pre-req for this Series: https://www.youtube.com/watch?v=yVdKa8dnKiE&list=PLgUwDviBIf0rGlzIn_7rsaR2FQ5e6ZOL9

a

Make sure to join our telegram group for discussions: https://linktr.ee/takeUforward

Full Playlist: https://www.youtube.com/watch?v=FfXoiwwnxFw&list=PLgUwDviBIf0qUlt5H_kiKYaNSqJ81PMMY

In this video, we solve the problem of cutting rod. We start with memoization, then tabulation, then two-row space optimization, ending up with single row optimisation. This problem is the last problem on DP on Subsequences Pattern. Please watch DP 23 before watching this.

If you have not yet checked our SDE sheet, you should definitely do it: https://takeuforward.org/interviews/strivers-sde-sheet-top-coding-interview-problems/

You can also get in touch with me at my social handles: https://linktr.ee/takeUforward

Designed under CodEX ©2025 Nexus

Designed under CodEX ©2025 Nexus

Designed under CodEX ©2025 Nexus