From a37d5f5817188550b08bea9fbfa8b9bb51041592 Mon Sep 17 00:00:00 2001 From: Kim Leung <71901468+leungkimho@users.noreply.github.com> Date: Mon, 1 Feb 2021 07:11:15 -0700 Subject: [PATCH] fix(learn): add output type verbiage (#40589) Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> --- .../10-coding-interview-prep/rosetta-code/top-rank-per-group.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/top-rank-per-group.md b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/top-rank-per-group.md index 1d108daccf..c9405c8f3f 100644 --- a/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/top-rank-per-group.md +++ b/curriculum/challenges/english/10-coding-interview-prep/rosetta-code/top-rank-per-group.md @@ -48,6 +48,8 @@ one could rank the top-rated movie in each genre by calling `topRankPerGroup(1, data, 'genre', 'rating')` +The function should return an array with an array for each group containing the top `n` objects. + # --hints-- `topRankPerGroup` should be a function.