Skip to content

feat: add count distinct elements in window algorithm#7463

Merged
DenizAltunkapan merged 5 commits into
TheAlgorithms:masterfrom
SyedAbd110786:feat/count-distinct-elements-window
Jun 15, 2026
Merged

feat: add count distinct elements in window algorithm#7463
DenizAltunkapan merged 5 commits into
TheAlgorithms:masterfrom
SyedAbd110786:feat/count-distinct-elements-window

Conversation

@SyedAbd110786

@SyedAbd110786 SyedAbd110786 commented Jun 10, 2026

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

@codecov-commenter

codecov-commenter commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.88889% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.83%. Comparing base (0388455) to head (0a65c0f).

Files with missing lines Patch % Lines
...s/slidingwindow/CountDistinctElementsInWindow.java 88.88% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #7463      +/-   ##
============================================
+ Coverage     79.82%   79.83%   +0.01%     
- Complexity     7312     7319       +7     
============================================
  Files           804      805       +1     
  Lines         23767    23785      +18     
  Branches       4676     4680       +4     
============================================
+ Hits          18971    18989      +18     
  Misses         4036     4036              
  Partials        760      760              

☔ View full report in Codecov by Harness.
📢 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.

@SyedAbd110786 SyedAbd110786 marked this pull request as ready for review June 10, 2026 13:27
@SyedAbd110786

Copy link
Copy Markdown
Contributor Author

Hi, just checking in on this pull request. Please let me know if any changes are needed

@DenizAltunkapan DenizAltunkapan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, thanks! @SyedAbd110786

@DenizAltunkapan DenizAltunkapan enabled auto-merge (squash) June 15, 2026 08:55
@DenizAltunkapan DenizAltunkapan merged commit bf8f3bd into TheAlgorithms:master Jun 15, 2026
7 checks passed
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