From b3549c94d641bcb86ae777a6dbfc7462eafad3cf Mon Sep 17 00:00:00 2001 From: Ankur Sundara Date: Fri, 10 Mar 2017 19:19:43 -0600 Subject: [PATCH] Update description.md --- library/description.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/library/description.md b/library/description.md index c85ebf2..1bab618 100644 --- a/library/description.md +++ b/library/description.md @@ -4,11 +4,11 @@ Input: the integer, N (1<=N<=2^1024) Output: the number of ways you can place red-colored books and blue-colored books onto the bookshelf. Since this number might be really big, output it mod 10^9+7. -Ex: N=3 - - +Example: Input: 3 +Your valid bookshelf layouts are: +``` BB BB @@ -29,5 +29,6 @@ BR BR RB - +``` +Therefore, Output: 7