Skip to content

Commit 01f480e

Browse files
committed
[REFACTOR] [Hacker Rank] Interview Preparation Kit: String Manipulation: Making Anagrams.
* Adjusted the interface to match what hackerrank expects.
1 parent 5eaf475 commit 01f480e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hackerrank/interview_preparation_kit/string_manipulation/ctci_making_anagrams.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function sum(values) {
1919
);
2020
}
2121

22-
export function makeAnagram(a, b) {
22+
function makeAnagram(a, b) {
2323
const aMap = charToDicMap(a);
2424
const bMap = charToDicMap(b);
2525

@@ -34,3 +34,4 @@ export function makeAnagram(a, b) {
3434
}
3535

3636
export default { makeAnagram };
37+
export { makeAnagram };

0 commit comments

Comments
 (0)