---
title: "Discussion on \"Longest Common Subsequence\" | Hashnode"
description: "Discussion on \"Longest Common Subsequence\". Longest Common Subsequence is a problem in leetcode, but unlike some other normal problems in leetcode, this one is a real-world problem. It is used in Git diff command to check difference between 2 files.\nLet's understand what is longest common subs..."
url: "https://hashnode.com/posts/longest-common-subsequence/62f05ee4e3a3793580e043f3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Longest Common Subsequence](https://blog.yaox023.com/longest-common-subsequence?utm_source=hashnode&utm_medium=feed)

Longest Common Subsequence is a problem in leetcode, but unlike some other normal problems in leetcode, this one is a real-world problem. It is used in Git diff command to check difference between 2 files. Let's understand what is longest common subs...

Aug 8, 2022 · 5 min read · blog.yaox023.com  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#leetcode](https://hashnode.com/tag/leetcode)

## Written by

[yaox023](https://hashnode.com/@yaox023)

@yaox023 · Tokyo, Japan

  
[View profile](https://hashnode.com/@yaox023)

A Software Developer in Tokyo

## Responses 1

Markdown supported · ⌘↵ to post

[Kat Kime](https://hashnode.com/@katexcellence)

[Aug 8, 2022](https://hashnode.com/posts/longest-common-subsequence/62f05ee4e3a3793580e043f3/comment/62f081afdfc2b15565884d3d)

Oh interesting - never realized git uses LCS to find differences, but it totally makes sense.
