From 8acce10885a92a727cd587d2d133449c9242aa2b Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Thu, 30 Nov 2017 19:17:33 +0200 Subject: [PATCH] Formatted snippets Consistency in headings. --- snippets/RGB-to-hexadecimal.md | 2 +- snippets/greatest-common-divisor-(GCD).md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/RGB-to-hexadecimal.md b/snippets/RGB-to-hexadecimal.md index 3e53fc25d..11520c8e9 100644 --- a/snippets/RGB-to-hexadecimal.md +++ b/snippets/RGB-to-hexadecimal.md @@ -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('')`. diff --git a/snippets/greatest-common-divisor-(GCD).md b/snippets/greatest-common-divisor-(GCD).md index 1a4b8a1e7..3a201fb28 100644 --- a/snippets/greatest-common-divisor-(GCD).md +++ b/snippets/greatest-common-divisor-(GCD).md @@ -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`.