Skip to content
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

Update SinglyLinkedList.java #5270

Closed
wants to merge 1 commit into from
Closed

Conversation

gulu375
Copy link

@gulu375 gulu375 commented Jul 1, 2024

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
  • 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

Added a poll() function that:
- returns the head(first node) isolated and removes it from Linked-List
- Updates the size of Linked-List
@codecov-commenter
Copy link

codecov-commenter commented Jul 1, 2024

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 ⚠️
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     

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

Copy link
Member

@BamaCharanChhandogi BamaCharanChhandogi left a comment

Choose a reason for hiding this comment

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

Fix formatting issues, then we can start review.

Copy link

github-actions bot commented Aug 3, 2024

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!

@github-actions github-actions bot added stale and removed stale labels Aug 3, 2024
Copy link
Member

@BamaCharanChhandogi BamaCharanChhandogi left a comment

Choose a reason for hiding this comment

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

You have not changed this file for a long time so I closing this.

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.

None yet

3 participants