Java
Java copied to clipboard
Update SinglyLinkedList.java
trafficstars
Added a poll() function that:
- Returns the head(first node) isolated and removes it from Linked-List
- Updates the size of Linked-List
- Throws NoSuchElementException if Linked-List is empty
- [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.
- [ ] All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
- [x] All new code is formatted with
clang-format -i --style=file path/to/your/file.java
Codecov Report
Attention: Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.
Project coverage is 40.03%. Comparing base (
208e1e9) to head (5f1c694). Report is 46 commits behind head on master.
| Files | Patch % | Lines |
|---|---|---|
| ...orithms/datastructures/lists/SinglyLinkedList.java | 0.00% | 7 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## master #5270 +/- ##
============================================
- Coverage 40.07% 40.03% -0.04%
Complexity 2464 2464
============================================
Files 519 519
Lines 15479 15486 +7
Branches 2954 2954
============================================
- Hits 6203 6200 -3
- Misses 8986 8995 +9
- Partials 290 291 +1
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution!