Formatted snippets
Consistency in headings.
This commit is contained in:
@ -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('')`.
|
||||
|
||||
@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user