Formatted snippets

Consistency in headings.
This commit is contained in:
Angelos Chalaris
2017-11-30 19:17:33 +02:00
parent 4c53799970
commit 8acce10885
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
## RGB to hexadecimal
### RGB to hexadecimal
Convert each value to a hexadecimal string, using `toString(16)`, then `padStart(2,'0')` to get a 2-digit hexadecimal value.
Combine values using `join('')`.

View File

@ -1,4 +1,4 @@
## Greatest common divisor (GCD)
### Greatest common divisor (GCD)
Use recursion.
Base case is when `y` equals `0`. In this case, return `x`.