TheAlgorithms / C-Sharp

All algorithms implemented in C#.
GNU General Public License v3.0
7.12k stars 1.52k forks source link

Add Chebyshev distance algorithm #496

Open Paulofalcao2002 opened 1 day ago

Paulofalcao2002 commented 1 day ago

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.

codecov[bot] commented 1 day ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.15%. Comparing base (cb4760c) to head (b950dfa).

Additional details and impacted files ```diff @@ 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 ```

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