diff options
Diffstat (limited to 'Computer_Science/leetcode/5-longest_palindromic_substring.c~')
| -rw-r--r-- | Computer_Science/leetcode/5-longest_palindromic_substring.c~ | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Computer_Science/leetcode/5-longest_palindromic_substring.c~ b/Computer_Science/leetcode/5-longest_palindromic_substring.c~ new file mode 100644 index 0000000..99c44fc --- /dev/null +++ b/Computer_Science/leetcode/5-longest_palindromic_substring.c~ @@ -0,0 +1,7 @@ +char* longestPalindrome(char* s) { + int *lo, *hi; + + *(p + (*hi) + 1) = '0'; + return p + *lo; +} + |
