# Dynamic Programming

**23**Pins

**1**Followers

Find the longest monotonically increasing subsequence in an array. Java solution for finding length of longest increasing subsequence in an array is provided in code snippet section. Java visualization is provided in algorithm visualization section.

#### Find the length of longest increasing subsequence in an array

Use dynamic programming and find the longest common subsequence between strings S1 and S2. Here is a video solution that implements solution for the longest common subsequence problem. The algorithm is explained with the help of examples and animations.Java code is provided in Code Snippet Section.

#### Longest Common Subsequence

Given a gold mine of n*m dimensions. Each field in this mine contains an integer which is the amount of gold in tons. Initially the miner is in first column but can be at any row i. He can move only (right , right up , right down ) that is from a given cell, the miner can move to the cell diagonally up towards the right or right or diagonally down towards the right. Find out maximum amount of gold he can collect. Java code is given in code snippet section.