TheAlgorithms / Rust

All Algorithms implemented in Rust
MIT License
22.92k stars 2.24k forks source link

Queue implementation using singly linked list #814

Closed Ismael144 closed 1 month ago

Ismael144 commented 1 month ago

Pull Request Template

Description

A Queue implementation using a singly linked list, its fast and efficient because of the linked list

Type of change

Please delete options that are not relevant.

Checklist:

Please make sure that if there is a test that takes too long to run ( > 300ms), you #[ignore] that or try to optimize your code or make the test easier to run. We have this rule because we have hundreds of tests to run; If each one of them took 300ms, we would have to wait for a long time.

codecov-commenter commented 1 month ago

Codecov Report

Attention: Patch coverage is 85.52189% with 43 lines in your changes missing coverage. Please review.

Project coverage is 95.24%. Comparing base (0dbaff5) to head (7de3d7f).

Files with missing lines Patch % Lines
.../data_structures/queue_using_singly_linked_list.rs 85.52% 43 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #814 +/- ## ========================================== - Coverage 95.36% 95.24% -0.13% ========================================== Files 311 312 +1 Lines 22673 22970 +297 ========================================== + Hits 21623 21877 +254 - Misses 1050 1093 +43 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

vil02 commented 1 month ago

If I see correctly this is already implemented in queue.rs.

vil02 commented 1 month ago

Closed as duplicate.