Skip to content

feat: add count distinct elements in window algorithm#7463

Open
SyedAbd110786 wants to merge 3 commits into
TheAlgorithms:masterfrom
SyedAbd110786:feat/count-distinct-elements-window
Open

feat: add count distinct elements in window algorithm#7463
SyedAbd110786 wants to merge 3 commits into
TheAlgorithms:masterfrom
SyedAbd110786:feat/count-distinct-elements-window

Conversation

@SyedAbd110786

@SyedAbd110786 SyedAbd110786 commented Jun 10, 2026

Copy link
Copy Markdown
  • [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.80%. Comparing base (34079f0) to head (5dfc797).

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.81%   79.80%   -0.01%     
- Complexity     7304     7306       +2     
============================================
  Files           803      804       +1     
  Lines         23751    23769      +18     
  Branches       4671     4675       +4     
============================================
+ Hits          18957    18969      +12     
- Misses         4036     4037       +1     
- Partials        758      763       +5     

☔ 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
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.

2 participants