Skip to content

Commit 01cdbae

Browse files
committed
[REFACTOR] [Hacker Rank] Interview Preparation Kit: Dictionaries and Hashmaps: Sherlock and Anagrams.
* Adjusted the interface to match what hackerrank expects.
1 parent cf9c9e4 commit 01cdbae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/sherlock_and_anagrams.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function extraLongFactorials(n) {
1010
return rs;
1111
}
1212

13-
export function sherlockAndAnagrams(s) {
13+
function sherlockAndAnagrams(s) {
1414
const candidates = {};
1515
const size = s.length;
1616

@@ -66,3 +66,4 @@ export function sherlockAndAnagrams(s) {
6666
}
6767

6868
export default { sherlockAndAnagrams };
69+
export { sherlockAndAnagrams };

0 commit comments

Comments
 (0)