2016年5月15日

L2-005. 集合相似度

摘要: 题目: 这个题最后一个数据没有通过 ,先这样吧,过几天应该有题解,到时候在完善一下。。。 阅读全文

posted @ 2016-05-15 20:57 青春的梦想付诸行动 阅读(216) 评论(0) 推荐(0)

L2-008. 最长对称子串 (有个知识点没看)

摘要: 题目: 思路 方法一:判断字符串的每一个子串,若是对称的,则求出它的长度即可。这种办法对每一个子串,从两头向中间判断是不是子串。总的时间复杂度为O(n^3), 下面给出时间复杂度是O(n^2)的思路。 方法二:与方法一正好相反,字符串中的每一个开始,向两边扩展,此时可分为两种情况: (1)对称子串长 阅读全文

posted @ 2016-05-15 20:32 青春的梦想付诸行动 阅读(900) 评论(0) 推荐(0)

L1-1. 这是一道简单题

摘要: 题目: 阅读全文

posted @ 2016-05-15 16:08 青春的梦想付诸行动 阅读(182) 评论(0) 推荐(0)

L1-3. 这道真是简单题

摘要: 题目: 阅读全文

posted @ 2016-05-15 16:06 青春的梦想付诸行动 阅读(172) 评论(0) 推荐(0)

百度之星 预赛004--字典树

摘要: #include #include #include #include #include #include using namespace std; struct node { int cnt;//记录个数; struct node *next[26]; node() { cnt=0; memset(next,NULL... 阅读全文

posted @ 2016-05-15 12:27 青春的梦想付诸行动 阅读(140) 评论(0) 推荐(0)

导航