Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Longest Common Subsequence in Java & C++ #1587

Merged
merged 15 commits into from
Oct 14, 2019

Conversation

Shubham230198
Copy link
Contributor

@Shubham230198 Shubham230198 commented Oct 12, 2019

Congrats on taking the first step to contributing to the Sample Programs repository maintained by The Renegade Coder! For simplicity, please make sure that your pull request includes one and only one contribution.

Complete the Applicable Sections Below

Find which section best describes your pull request and make sure you fill it out. To start, let us know which issue you've fixed.

Code Snippets

  • I named the pull request using Added/Updated <Sample Program> in <Language> format
  • I created/updated the language README
    • I added the sample program name to the README
    • I added fun facts (i.e. debut, developer, typing, etc.)
    • I added reference link(s) to the README
    • I added solution citations when necessary (see plagiarism)

Documentation

  • I named the pull request using Added/Updated <Sample Program> in <Language> Article format
  • I followed the applicable article template

Testing

  • I named the pull request using Added/Updated <Language>/<Project> Testing format
  • I followed the testinfo template, if applicable

Notes

Feel free to describe what you added or updated.

This is the code for Longest common sub-sequence.
This is code for Longest Common Sub-Sequence, in java language.
This is Longest Common Sub-Sequence code in java language.
@Shubham230198 Shubham230198 changed the title solved #1262 Added Longest Common Subsequence Oct 12, 2019
@jrg94 jrg94 changed the title Added Longest Common Subsequence Added Longest Common Subsequence in Java & C++ Oct 12, 2019
Copy link
Member

@jrg94 jrg94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but they currently aren't being tested: https://travis-ci.com/TheRenegadeCoder/sample-programs/jobs/245039381#L562-L581

I think that's because we use "lcs" for the file names. It's a bad abbreviation, but it's what we use. You'll have to update your files accordingly for the testing to trigger.

archive/c/c-plus-plus/longest-common-subsequence.cpp Outdated Show resolved Hide resolved
@jrg94 jrg94 self-assigned this Oct 12, 2019
@jrg94 jrg94 added hacktoberfest Hacktoberfest related longest common subsequence See: https://sampleprograms.io/projects/longest-common-subsequence/ enhancement Any code that improves the repo labels Oct 12, 2019
@jrg94 jrg94 added this to the 500 Code Snippets milestone Oct 12, 2019
Formated the indentation, and name of file updated from longest-common-subsequence to lcs.
Updated the name of file from longest-common-subsequence to lcs
Corrected the link for longest-common-subsequence.
@Shubham230198
Copy link
Contributor Author

Done the changes, you requested.

@Shubham230198 Shubham230198 requested a review from jrg94 October 13, 2019 06:07
Corrected some piece of code
Corrected some piece of code.
Copy link
Member

@jrg94 jrg94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. That's the last bug I believe.

archive/c/c-plus-plus/lcs.cpp Outdated Show resolved Hide resolved
@Shubham230198 Shubham230198 requested a review from jrg94 October 14, 2019 17:59
Copy link
Member

@jrg94 jrg94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! I think these are good to go now.

@jrg94 jrg94 merged commit fed1ef3 into TheRenegadeCoder:master Oct 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Any code that improves the repo hacktoberfest Hacktoberfest related longest common subsequence See: https://sampleprograms.io/projects/longest-common-subsequence/
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Add Longest Common Subsequence in C++
2 participants