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 e3fe04e commit 967f8f6Copy full SHA for 967f8f6
src/hackerrank/interview_preparation_kit/string_manipulation/sherlock_and_valid_string.ts
@@ -5,7 +5,7 @@
5
const __YES__ = 'YES';
6
const __NO__ = 'NO';
7
8
-export function isValidCompute(s: string): boolean {
+function isValidCompute(s: string): boolean {
9
if (s.length <= 1) {
10
return true;
11
}
@@ -48,8 +48,9 @@ export function isValidCompute(s: string): boolean {
48
return false;
49
50
51
-export function isValid(s: string): string {
+function isValid(s: string): string {
52
return isValidCompute(s) ? __YES__ : __NO__;
53
54
55
export default { isValid };
56
+export { isValid };
0 commit comments