Skip to content

Commit 9678697

Browse files
sir-gonGonzalo Diaz
authored andcommitted
[REFACTOR] [Hacker Rank] Interview Preparation Kit: Sorting: Mark and Toys.
* Adjusted the interface to match what hackerrank expects.
1 parent 838b71b commit 9678697

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hackerrank/interview_preparation_kit/sort/mark_and_toys.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @link Problem definition [[docs/hackerrank/interview_preparation_kit/sort/mark-and-toys.md]]
33
*/
44

5-
export function maximumToys(prices, k) {
5+
function maximumToys(prices, k) {
66
const group = [...prices];
77
group.sort((a, b) => a - b);
88

@@ -21,3 +21,4 @@ export function maximumToys(prices, k) {
2121
}
2222

2323
export default { maximumToys };
24+
export { maximumToys };

0 commit comments

Comments
 (0)