exercism/elixir/darts/HINTS.md

7 lines
258 B
Markdown
Raw Normal View History

2023-12-17 05:26:14 +00:00
# Hints
## General
- The distance of a point `(x, y)` from the center of the target `(0, 0)` can be calculated with `sqrt(x*x + y *y)`
- You can calculate the square root of `x` by raising it to the power of `1/2`. In other words, `sqrt(x) == pow(x, 0.5)`