Skip to content

Newbranch2 #6049

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

Closed
wants to merge 11 commits into from
Closed

Newbranch2 #6049

wants to merge 11 commits into from

Conversation

Chiefpatwal
Copy link
Contributor

@Chiefpatwal Chiefpatwal commented Oct 28, 2024

  • 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

codecov-commenter commented Oct 28, 2024

Codecov Report

Attention: Patch coverage is 70.58824% with 5 lines in your changes missing coverage. Please review.

Project coverage is 72.40%. Comparing base (5e9d1dc) to head (8108252).

Files with missing lines Patch % Lines
...slidingwindow/SubarraysWithKDifferentIntegers.java 70.58% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6049      +/-   ##
============================================
+ Coverage     72.38%   72.40%   +0.01%     
- Complexity     4982     4988       +6     
============================================
  Files           653      654       +1     
  Lines         17574    17591      +17     
  Branches       3386     3390       +4     
============================================
+ Hits          12721    12736      +15     
- Misses         4372     4375       +3     
+ Partials        481      480       -1     

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

@Chiefpatwal Chiefpatwal marked this pull request as ready for review October 28, 2024 09:20
@Chiefpatwal
Copy link
Contributor Author

This pull request adds the SubarraysWithKDifferentIntegers algorithm to the sliding window section. The algorithm efficiently calculates the number of subarrays with exactly k different integers using a sliding window approach.Test have been also added for the same.

@siriak
Copy link
Member

siriak commented Oct 29, 2024

We don't add leetcode problems

@siriak siriak closed this Oct 29, 2024
@Chiefpatwal
Copy link
Contributor Author

ok

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