Skip to content


Repository files navigation

Longest Common Subsequence (LCS) - Swift

A demonstration for Longest Common Subsequence (LCS) in swift.

Part 1: Naive Approach and Dynamic Programming

Disscus naive solution and Dynamic Programming by using Memorization-Table. Ref:

Part 2: Diff on iOS development.

Implement Diff and DiffStep struct for representing remove/delete/reload action. Improvement Diff Algorithm to calculate the optimzation "DiffStep" Extend UITableView, UICollectionView, easier get optimize transfrom from DataSourceA -> DataSourceB. Ref:

Keep in touch

If you're interesting about Data Stucture and Alogrithm, please keep in touch with me at . I intent to write more, with visualization image, help you could understand easier 😉


No releases published


No packages published