if all the price are same then we can do it in o(n). improved time complexity.
dynamic_programming/0_1_knapsack.cpp
dynamic_programming/cut_rod.cpp