diff options
| author | Steve Lee <me@xiangyangli.com> | 2018-01-13 05:13:14 +0800 |
|---|---|---|
| committer | Steve Lee <me@xiangyangli.com> | 2018-01-13 05:13:14 +0800 |
| commit | a46ec300092c1ee8ccac629b7f335643f87662f5 (patch) | |
| tree | b03e20d905e6f583df626386164daf4aa5f81519 /Computer_Science/leetcode/5-longest_palindromic_substring.c~ | |
| parent | 79a9c52fa923fc78074d88463449a8b7f95ca3ef (diff) | |
| download | 42-a46ec300092c1ee8ccac629b7f335643f87662f5.tar.xz 42-a46ec300092c1ee8ccac629b7f335643f87662f5.zip | |
update
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; +} + |
