Skip to content

Commit 5eaf475

Browse files
committed
[REFACTOR] [Hacker Rank] Interview Preparation Kit: String Manipulation: Alternating Characters.
* Adjusted the interface to match what hackerrank expects.
1 parent 04aa8e4 commit 5eaf475

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hackerrank/interview_preparation_kit/string_manipulation/alternating_characters.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/string_manipulation/alternating-characters.md]]
33
*/
44

5-
export function alternatingCharacters(s) {
5+
function alternatingCharacters(s) {
66
let last = '';
77
let newString = '';
88

@@ -18,3 +18,4 @@ export function alternatingCharacters(s) {
1818
}
1919

2020
export default { alternatingCharacters };
21+
export { alternatingCharacters };

0 commit comments

Comments
 (0)