You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add comments for crystal analyzer 1.3
* Update analyzer-comments/crystal/darts/hypot.md
Co-authored-by: Isaac Good <[email protected]>
* Update analyzer-comments/crystal/darts/hypot.md
Co-authored-by: Isaac Good <[email protected]>
* Update analyzer-comments/crystal/weighing-machine/missing_method.md
Co-authored-by: Isaac Good <[email protected]>
---------
Co-authored-by: Isaac Good <[email protected]>
Using `pow`, `sqrt` or `**` is totally valid and can be necessary in many situations.
4
+
However when we want a distance in Cartesian space we can use the [`hypot` method][hypot] which returns the hypotenuse of a right angle triangle with sides x and y.
Copy file name to clipboardExpand all lines: analyzer-comments/crystal/sieve/do_not_use_div_rem.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
Like the instructions mention, the purpose of this exercise is to build a Sieve of Eratosthenes without the use of operations such as division or modulo division.
4
4
Please refer to the [Wikipedia link][wikipedia] for a description of the algorithm.
5
5
6
-
Building the Sieve of Eratosthenes in an immutable language such as Crystal may feel a bit unnatural,
6
+
Building the Sieve of Eratosthenes without operations such as division or modulo division can be tricky.
7
7
but it is a beautiful algorithm invented more than two millennia ago that is worth learning and implementing.
0 commit comments