- 博客(6)
- 收藏
- 关注
原创 LeetCode——152. Maximum Product Subarray
问题描述:Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array [2,3,-2,4],the contiguous subarray [2,3] has the largest p
2017-10-26 21:03:33 225
原创 LeetCode——139. Word Break
问题描述:Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a space-separated sequence of one or more dictionary words. You may
2017-10-19 13:44:51 303
原创 LeetCode——141. Linked List Cycle && 142. Linked List Cycle II
今天再次推出一套组合题。 首先是:141.Linked List Cycle 问题描述:Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space? 题目大致的意思就是给你一个链表,判断它里面是否含有环,有的话返回true,没有的
2017-10-15 01:38:31 245
原创 LeetCode——138. Copy List with Random Pointer
问题描述:A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep copy of the list. 这道题大致的意思就是,一个链表,它每一个节点除了一个next引用
2017-10-13 23:18:14 216
原创 LeetCode——124. Binary Tree Maximum Path Sum
问题描述:Given a binary tree, find the maximum path sum.For this problem, a path is defined as any sequence of nodes from some starting node to any node in the tree along the parent-child connections. The
2017-10-13 01:46:29 282
原创 LeetCode——136. Single Number&&137. Single Number II
——Single Number 问题描述:Given an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime complexity. Could you implement it w
2017-10-11 01:09:39 229
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人