Add longest common substring (#7488)
Add longest common substring (#7488)

* added longest common substring

* added retrun type hint

* Update dynamic_programming/longest_common_substring.py

Co-authored-by: Caeden Perelli-Harris <1d137fe7d2075b153d55a5b9fdbf2b26e74b91ae@gmail.com>

* Update dynamic_programming/longest_common_substring.py

Co-authored-by: Caeden Perelli-Harris <1d137fe7d2075b153d55a5b9fdbf2b26e74b91ae@gmail.com>

* Update dynamic_programming/longest_common_substring.py

Co-authored-by: Caeden Perelli-Harris <1d137fe7d2075b153d55a5b9fdbf2b26e74b91ae@gmail.com>

* Update dynamic_programming/longest_common_substring.py

Co-authored-by: Caeden Perelli-Harris <1d137fe7d2075b153d55a5b9fdbf2b26e74b91ae@gmail.com>

* Update dynamic_programming/longest_common_substring.py

Co-authored-by: Caeden Perelli-Harris <1d137fe7d2075b153d55a5b9fdbf2b26e74b91ae@gmail.com>

* Update dynamic_programming/longest_common_substring.py

Co-authored-by: Caeden Perelli-Harris <1d137fe7d2075b153d55a5b9fdbf2b26e74b91ae@gmail.com>

* Update dynamic_programming/longest_common_substring.py

Co-authored-by: Caeden Perelli-Harris <1d137fe7d2075b153d55a5b9fdbf2b26e74b91ae@gmail.com>

* Update dynamic_programming/longest_common_substring.py

Co-authored-by: Caeden Perelli-Harris <1d137fe7d2075b153d55a5b9fdbf2b26e74b91ae@gmail.com>

* Update dynamic_programming/longest_common_substring.py

Co-authored-by: Caeden Perelli-Harris <1d137fe7d2075b153d55a5b9fdbf2b26e74b91ae@gmail.com>

* Update dynamic_programming/longest_common_substring.py

Co-authored-by: Caeden Perelli-Harris <1d137fe7d2075b153d55a5b9fdbf2b26e74b91ae@gmail.com>

* Update dynamic_programming/longest_common_substring.py

Co-authored-by: Caeden Perelli-Harris <1d137fe7d2075b153d55a5b9fdbf2b26e74b91ae@gmail.com>

* changed t1, t2 to text1, text2

* Update longest_common_substring.py

* Update dynamic_programming/longest_common_substring.py

Co-authored-by: Chris O <38cfa01ae32af4ae18d97799e4f020b04b4a3cba@users.noreply.github.com>

* Update dynamic_programming/longest_common_substring.py

Co-authored-by: Chris O <38cfa01ae32af4ae18d97799e4f020b04b4a3cba@users.noreply.github.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* applied suggested changes

* Update dynamic_programming/longest_common_substring.py

Co-authored-by: Caeden Perelli-Harris <1d137fe7d2075b153d55a5b9fdbf2b26e74b91ae@gmail.com>

* removed space between line

* return longest common substring

* Update dynamic_programming/longest_common_substring.py

Co-authored-by: Christian Clauss <585dd401264c1e46d17ebec1862e5d2a9b6a6c5d@me.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: Caeden Perelli-Harris <1d137fe7d2075b153d55a5b9fdbf2b26e74b91ae@gmail.com>
Co-authored-by: Chris O <38cfa01ae32af4ae18d97799e4f020b04b4a3cba@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <3ea08453efb076ca910552532a53973a6527df40@users.noreply.github.com>
Co-authored-by: Christian Clauss <585dd401264c1e46d17ebec1862e5d2a9b6a6c5d@me.com>
TheAlgorithms/Python