fix(curriculum) replace single-line blocks with multi-line blocks for… (#41526)

* fix(curriculum) replace single-line blocks with multi-line blocks for issue 51418

Data visualization and Coding Interview Prep portions.

* Update execute-a-markov-algorithm.md

Implemented as inline code blocks as discussed

* Adding missed blocks

* Last file added
This commit is contained in:
Laurent Labine
2021-03-25 15:43:13 +01:00
committed by GitHub
parent e55aa5c7bb
commit 8e22962523
18 changed files with 77 additions and 59 deletions

View File

@@ -32,7 +32,9 @@ testData1 = [
One could rank top 10 employees in each department by calling:
`topRankPerGroup(10, testData1, 'dept', 'salary')`
```js
topRankPerGroup(10, testData1, 'dept', 'salary')
```
Given the following data:
@@ -48,7 +50,9 @@ testData2 = [
One could rank the top-rated movie in each genre by calling:
`topRankPerGroup(1, testData2, 'genre', 'rating')`
```js
topRankPerGroup(1, testData2, 'genre', 'rating')
```
The function should return an array with an array for each group containing the top `n` objects.