This commit is contained in:
2025-09-15 21:12:04 +08:00
commit 3f58f483ff
144 changed files with 5298 additions and 0 deletions

14
we/24-sy-1.c Normal file
View File

@@ -0,0 +1,14 @@
#include <stdbool.h>
bool isPalindrome(char *s){
int len = strlen(s);
int left = 0, right = len - 1;
while (left < right) {
if (s[left] != s[right]) {
return false;
}
left++;
right--;
}
return true;
}