Merge pull request #16375 from saurishkar/fix/system-design-arraymap-ques2

fix(seed): fixed correct answer typo in explanation of question 2
This commit is contained in:
Berkeley Martinez
2018-01-01 12:55:49 -08:00
committed by GitHub

View File

@ -30,7 +30,7 @@
"<pre><code class='language-javascript'>'ABC'</code></pre>" "<pre><code class='language-javascript'>'ABC'</code></pre>"
], ],
"answer": 0, "answer": 0,
"explanation": "The map function will return a new array with each element equal to the old element ran through a callback function. Our callback function takes our original element, changes it to a upper case, and then wraps it in an array; thus, leaving us with <code>[['A', 'B', 'C']]</code>" "explanation": "The map function will return a new array with each element equal to the old element ran through a callback function. Our callback function takes our original element, changes it to a upper case, and then wraps it in an array; thus, leaving us with <code>[['A'], ['B'], ['C']]</code>"
}, },
{ {
"subtitle": "Maps on Maps", "subtitle": "Maps on Maps",