Skip to content

fix: constant inputs in LongestIncreasingSubsequence::findLISLen#5160

Merged
vil02 merged 1 commit intoTheAlgorithms:masterfrom
vil02:add_LongestIncreasingSubsequenceTests
May 17, 2024
Merged

fix: constant inputs in LongestIncreasingSubsequence::findLISLen#5160
vil02 merged 1 commit intoTheAlgorithms:masterfrom
vil02:add_LongestIncreasingSubsequenceTests

Conversation

@vil02
Copy link
Copy Markdown
Member

@vil02 vil02 commented May 12, 2024

This PR adds missing tests, fixes LongestIncreasingSubsequence::findLISLen to handle constant and empty inputs and removes the main method from LongestIncreasingSubsequence.

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new code is formatted with clang-format -i --style=file path/to/your/file.java

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 12, 2024

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 38.57%. Comparing base (0f42e99) to head (ec10f94).
⚠️ Report is 1075 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5160      +/-   ##
============================================
+ Coverage     38.27%   38.57%   +0.30%     
- Complexity     2362     2377      +15     
============================================
  Files           516      516              
  Lines         15322    15315       -7     
  Branches       2957     2957              
============================================
+ Hits           5864     5908      +44     
+ Misses         9173     9121      -52     
- Partials        285      286       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vil02 vil02 marked this pull request as ready for review May 12, 2024 13:24
@vil02 vil02 enabled auto-merge (squash) May 12, 2024 13:24
@vil02 vil02 changed the title fix: handle constant inputs in `LongestIncreasingSubsequence::findLISLen' fix: handle constant inputs in LongestIncreasingSubsequence::findLISLen May 12, 2024
@vil02 vil02 changed the title fix: handle constant inputs in LongestIncreasingSubsequence::findLISLen fix: constant inputs in LongestIncreasingSubsequence::findLISLen May 12, 2024
@vil02 vil02 force-pushed the add_LongestIncreasingSubsequenceTests branch from 886383d to ec10f94 Compare May 16, 2024 20:28
@vil02 vil02 merged commit bf9d0ed into TheAlgorithms:master May 17, 2024
@vil02 vil02 deleted the add_LongestIncreasingSubsequenceTests branch May 17, 2024 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants