Skip to content

Conversation

@mikenye
Copy link
Owner

@mikenye mikenye commented Mar 20, 2025

No description provided.

mikenye added 3 commits March 20, 2025 21:42
      - Add Floor method to find the largest key less than or equal to a given key
      - Add Ceiling method to find the smallest key greater than or equal to a given key
      - Implement both methods in the base BST class so they are inherited by RBTree
      - Add comprehensive test cases for both methods
      - Add examples demonstrating how to use these methods
      - Update RBTree documentation to list the new methods as safe inherited methods
it is expected that the Go compiler will inline this function.
@github-actions
Copy link

github-actions bot commented Mar 20, 2025

🐰 Bencher Report

Branchimplement_floor_ceiling
Testbedubuntu-latest
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
nanoseconds (ns)
(Result Δ%)
Upper Boundary
nanoseconds (ns)
(Limit %)
BenchmarkTree_Insert-4📈 view plot
🚷 view threshold
303.90 ns
(+10.33%)Baseline: 275.44 ns
312.45 ns
(97.26%)
BenchmarkTree_SearchDelete-4📈 view plot
🚷 view threshold
171.70 ns
(+30.87%)Baseline: 131.20 ns
183.18 ns
(93.73%)
🐰 View full continuous benchmarking report in Bencher

@codecov
Copy link

codecov bot commented Mar 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.58%. Comparing base (9e6aa08) to head (42c5283).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main       #4      +/-   ##
==========================================
+ Coverage   94.64%   99.58%   +4.93%     
==========================================
  Files           3        3              
  Lines         654      715      +61     
==========================================
+ Hits          619      712      +93     
+ Misses         31        2      -29     
+ Partials        4        1       -3     

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

@mikenye mikenye merged commit 6e4ec1a into main Mar 20, 2025
4 checks passed
@mikenye mikenye deleted the implement_floor_ceiling branch March 20, 2025 14:34
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