AdvancedDS Following qs are coded in the unique way with simplified and optimized solution by me. I have not copied the code from any other sources. RMQ (Range Minimum Queries) Sparse Table Segment Tree (using pointers) Square Root Decomposition Dynamic Programming Coin Change Painting Fence Generic Recurrence Relations SubSetSum and SubSetSum Divisible s Ugly Numbers Edit Distance 0/1 Knapsack Longest Common Subsequence Max Length Snake Seq Egg Dropping Puzzle Matrix Chain Multiplication