Skip to content

Commit cf99c48

Browse files
committed
chore: add result
1 parent 5f005ff commit cf99c48

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

valid-palindrome/tolluset.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@ function isPalindrome(s: string): boolean {
1919
return true;
2020
}
2121

22-
// Time complexity: O(n)
23-
2422
const t1 = isPalindrome("A man, a plan, a canal: Panama");
25-
console.info("🚀 : tolluset.ts:18: t1=", t1);
23+
console.info("🚀 : tolluset.ts:18: t1=", t1); // true
2624

2725
const t2 = isPalindrome("race a car");
28-
console.info("🚀 : tolluset.ts:21: t2=", t2);
26+
console.info("🚀 : tolluset.ts:21: t2=", t2); // false
2927

3028
const t3 = isPalindrome(" ");
31-
console.info("🚀 : tolluset.ts:24: t3=", t3);
29+
console.info("🚀 : tolluset.ts:24: t3=", t3); // ture

0 commit comments

Comments
 (0)