Skip to content

feat: add contains() method to DynamicArray#7270

Open
Neha-2005-VCE wants to merge 1 commit intoTheAlgorithms:masterfrom
Neha-2005-VCE:feat-add-contains-dynamicarray
Open

feat: add contains() method to DynamicArray#7270
Neha-2005-VCE wants to merge 1 commit intoTheAlgorithms:masterfrom
Neha-2005-VCE:feat-add-contains-dynamicarray

Conversation

@Neha-2005-VCE
Copy link

Added contains(E element) method to DynamicArray.

  • Uses Objects.equals for null-safe comparison
  • Iterates only over active elements (size)
  • Added unit tests including null case

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.33%. Comparing base (504b528) to head (100441e).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #7270      +/-   ##
============================================
+ Coverage     79.26%   79.33%   +0.06%     
- Complexity     6984     6994      +10     
============================================
  Files           781      781              
  Lines         22958    22962       +4     
  Branches       4510     4511       +1     
============================================
+ Hits          18197    18216      +19     
+ Misses         4034     4020      -14     
+ Partials        727      726       -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.

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