Skip to content

Commit

Permalink
Move and reformat hints (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
angelikatyborska authored Feb 5, 2021
1 parent 8a4de87 commit 36505ba
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 32 deletions.
10 changes: 10 additions & 0 deletions exercises/practice/diffie-hellman/.docs/hints.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## General

- For generating random numbers, Erlang's `:rand.uniform` or `Enum.random` are
good places to start.
- `:math.pow |> round` can be used to find the power of a number, and `rem` for
the modulus.
- Neither of those works particularly well (or quickly) for very large integers.
Cryptography generally makes use of numbers larger than 1024 bits. Erlang's
`:crypto` module has a useful function for finding the modulus of a power,
particularly for enormous integers, but you might need `:binary` to decode it.
10 changes: 0 additions & 10 deletions exercises/practice/diffie-hellman/hints/hints.md

This file was deleted.

7 changes: 7 additions & 0 deletions exercises/practice/secret-handshake/.docs/hints.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## General

- Use `Bitwise` (or div/rem).
- If you use `Bitwise`, an easy way to see if a particular bit is set is to compare
the binary AND (`&&&`) of a set of bits with the particular bit pattern you
want to check, and determine if the result is the same as the pattern you're
checking.
20 changes: 0 additions & 20 deletions exercises/practice/secret-handshake/hints/hints.md

This file was deleted.

3 changes: 3 additions & 0 deletions exercises/practice/strain/.docs/hints.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## General

- `apply` will let you pass arguments to a function, as will `fun.(args)`.
1 change: 0 additions & 1 deletion exercises/practice/strain/hints/hints.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Formatting the output is easy with `String`'s padding functions. All number
## General

- Formatting the output is easy with `String`'s padding functions. All number
columns can be left-padded with spaces to a width of 2 characters, while the
team name column can be right-padded with spaces to a width of 30.

0 comments on commit 36505ba

Please sign in to comment.