摘要:
题目链接:牛客题霸--跳台阶 来源:牛客网 算出前几项就可以找到此规律 class Solution { public: int jumpFloor(int number) { int a[10010]; a[0] = 0, a[1] = 1, a[2] = 2; for ( int i = 3; 阅读全文
posted @ 2020-11-06 23:43
182天后可以改名
阅读(34)
评论(0)
推荐(0)
摘要:
题目链接牛客题霸--最长回文子串题解 来源:牛客网 马拉车算法求最长回文子串 class Palindrome { public: int getLongestPalindrome(string A, int n) { string str = "@#"; int p[100010], id = 0 阅读全文
posted @ 2020-11-06 13:34
182天后可以改名
阅读(79)
评论(0)
推荐(0)
摘要:
题目链接:牛客题霸--反转字符串 来源:牛客网 暴力, 原始字符串取反存入新字符串 class Solution { public: string solve(string str) { string reverse_str; for ( int i = str.size()-1; i >= 0; 阅读全文
posted @ 2020-11-06 13:17
182天后可以改名
阅读(76)
评论(0)
推荐(0)

浙公网安备 33010602011771号