Advanced Algorithms My answers to the exercises in Algorithms & Data Structures with JS Exercise 1 Brute force algorithm to find the longest common substring String 1: String 2: Find Longest Substring Result: Exercise 2 Knapsack problem Capacity: Add Potential Item Solve Knapsack Max value: Exercise 3 Coin Changing Amount: Use Dimes (10c) Solution