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 5f005ff commit cf99c48Copy full SHA for cf99c48
valid-palindrome/tolluset.ts
@@ -19,13 +19,11 @@ function isPalindrome(s: string): boolean {
19
return true;
20
}
21
22
-// Time complexity: O(n)
23
-
24
const t1 = isPalindrome("A man, a plan, a canal: Panama");
25
-console.info("🚀 : tolluset.ts:18: t1=", t1);
+console.info("🚀 : tolluset.ts:18: t1=", t1); // true
26
27
const t2 = isPalindrome("race a car");
28
-console.info("🚀 : tolluset.ts:21: t2=", t2);
+console.info("🚀 : tolluset.ts:21: t2=", t2); // false
29
30
const t3 = isPalindrome(" ");
31
-console.info("🚀 : tolluset.ts:24: t3=", t3);
+console.info("🚀 : tolluset.ts:24: t3=", t3); // ture
0 commit comments