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

Add Chebyshev distance algorithm #496

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

Paulofalcao2002
Copy link
Contributor

Summary of the Change:

This pull request introduces the Chebyshev distance algorithm, where the distance between two points is the greatest of their differences along any coordinate dimension. Source

Motivation

Similar to my previous contributions, I wanted to include this algorithm since it is present in other languages repositories, such as python.

  • I have performed a self-review of my code
  • My code follows the style guidelines of this project
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Comments in areas I changed are up to date
  • I have added comments to hard-to-understand areas of my code
  • I have made corresponding changes to the README.md

Copy link

codecov bot commented Nov 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.15%. Comparing base (cb4760c) to head (b950dfa).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #496   +/-   ##
=======================================
  Coverage   95.15%   95.15%           
=======================================
  Files         264      265    +1     
  Lines       10835    10841    +6     
  Branches     1523     1524    +1     
=======================================
+ Hits        10310    10316    +6     
  Misses        400      400           
  Partials      125      125           

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

Copy link
Member

@siriak siriak left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@siriak siriak merged commit 02f2ecb into TheAlgorithms:master Nov 14, 2024
4 checks passed
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.

3 participants