上一页 1 2 3 4 5 6 7 8 ··· 14 下一页
  2018年8月3日
摘要: Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. Example 1: Exampl 阅读全文
posted @ 2018-08-03 23:56 f91og 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 1. Reverse Nodes in k-Group Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. k is a positive integer 阅读全文
posted @ 2018-08-03 22:48 f91og 阅读(303) 评论(0) 推荐(0) 编辑
  2018年7月31日
摘要: Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'. The matching should cover the entire  阅读全文
posted @ 2018-07-31 16:27 f91og 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 1. 合唱团 有 n 个学生站成一排,每个学生有一个能力值,牛牛想从这 n 个学生中按照顺序选取 k 名学生,要求相邻两个学生的位置编号的差不超过 d,使得这 k 个学生的能力值的乘积最大,你能返回最大的乘积吗? 思路:想到了用dp来解这题,但是接下来建立dp模型时却遇到了很多困难,尝试用 dp[n 阅读全文
posted @ 2018-07-31 16:16 f91og 阅读(347) 评论(0) 推荐(0) 编辑
  2018年7月21日
摘要: There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity sh 阅读全文
posted @ 2018-07-21 16:57 f91og 阅读(241) 评论(0) 推荐(0) 编辑
  2018年7月17日
摘要: We have a list of bus routes. Each routes[i] is a bus route that the i-th bus repeats forever. For example if routes[0] = [1, 5, 7], this means that t 阅读全文
posted @ 2018-07-17 23:17 f91og 阅读(464) 评论(0) 推荐(0) 编辑
  2018年6月1日
摘要: 1. Number of Islands Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed 阅读全文
posted @ 2018-06-01 17:20 f91og 阅读(166) 评论(0) 推荐(0) 编辑
  2018年5月25日
摘要: 1. Linked List Cycle II Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Note: Do not modify the linked 阅读全文
posted @ 2018-05-25 01:24 f91og 阅读(198) 评论(0) 推荐(0) 编辑
  2018年5月13日
摘要: 1. Sum Root to Leaf Numbers Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the ro 阅读全文
posted @ 2018-05-13 02:21 f91og 阅读(171) 评论(0) 推荐(0) 编辑
  2018年4月23日
摘要: 1. Convert Sorted List to Binary Search Tree Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced 阅读全文
posted @ 2018-04-23 14:22 f91og 阅读(179) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页