We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0140cc7 commit 5f24a22Copy full SHA for 5f24a22
src/hackerrank/interview_preparation_kit/sort/mark_and_toys.js
@@ -2,7 +2,7 @@
2
* @link Problem definition [[docs/hackerrank/interview_preparation_kit/sort/mark-and-toys.md]]
3
*/
4
5
-export function maximumToys(prices, k) {
+function maximumToys(prices, k) {
6
const group = [...prices];
7
group.sort((a, b) => a - b);
8
@@ -21,3 +21,4 @@ export function maximumToys(prices, k) {
21
}
22
23
export default { maximumToys };
24
+export { maximumToys };
0 commit comments