摘要: https://leetcode.com/problems/longest-valid-parentheses/ Given a string containing just the characters '(' and ')', find the length of the longest val 阅读全文
posted @ 2019-04-09 21:21 丧心病狂工科女 阅读(157) 评论(0) 推荐(0) 编辑
摘要: int MaxSubSum3(int *arr, int len) { int i; long long MaxSum = 0; long long CurSum = 0; for(int i = 0; i MaxSum) MaxSum = CurSum; if(CurSum < 0) CurSum = 0; } return MaxSum; } 阅读全文
posted @ 2019-04-09 20:30 丧心病狂工科女 阅读(238) 评论(0) 推荐(0) 编辑
摘要: A - Cooking Competition "Miss Kobayashi's Dragon Maid" is a Japanese manga series written and illustrated by Coolkyoushinja. An anime television serie 阅读全文
posted @ 2019-04-09 20:09 丧心病狂工科女 阅读(235) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/group-anagrams/ Given an array of strings, group anagrams together. Example: Note: All inputs will be in lowercase. The 阅读全文
posted @ 2019-04-09 11:43 丧心病狂工科女 阅读(102) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/insert-interval/ Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary) 阅读全文
posted @ 2019-04-09 10:31 丧心病狂工科女 阅读(181) 评论(0) 推荐(0) 编辑