Advanced Concepts Touched Cycle Detection (Floyd’s Algorithm) – Find the Duplicate Number Bit Manipulation & Math Reasoning Subsequence vs Subarray distinctions Greedy pitfalls & DP corrections ...
After that, the problem started looking like a Knapsack / Dynamic Programming problem: Cost = item price Value = total copies obtained vi. My first DP solution worked correctly but ran into TLE due to ...