mgechev / javascript-algorithms

💻 JavaScript implementations of computer science algorithms
https://mgechev.github.io/javascript-algorithms/
MIT License
7.84k stars 1.28k forks source link

New algorithm suggestion. #111

Closed krzysztof-grzybek closed 7 years ago

krzysztof-grzybek commented 7 years ago

I would like to implement algorithm which finds longest common subsequence.

Now I can see in repository longest-subsequence.js file, which refers to longest increasing subsequence problem.

I suggest renaming longest-subsequence.js to "longest-increasing-subsequence.js" and add new longest-common-subsequence.js file.

What do You think about this idea? Of course I would make pull request with those changes.

mgechev commented 7 years ago

Yes, makes sense. I'd love if you can send a PR with the suggested update.