随笔分类 -  Leetcode

摘要:Question Given a circular array C of integers represented by A, find the maximum possible sum of a non-empty subarray of C. Here, a circular array mea 阅读全文
posted @ 2019-01-02 09:08 thougr 阅读(136) 评论(0) 推荐(0)
摘要:Question Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0 阅读全文
posted @ 2018-10-01 00:46 thougr 阅读(185) 评论(0) 推荐(0)
摘要:Question Q1.Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lis 阅读全文
posted @ 2018-09-23 01:16 thougr 阅读(197) 评论(0) 推荐(0)
摘要:Question Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input woul 阅读全文
posted @ 2018-09-16 23:19 thougr 阅读(133) 评论(0) 推荐(0)
摘要:Question Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'. The matching should cover th 阅读全文
posted @ 2018-09-09 22:38 thougr 阅读(138) 评论(0) 推荐(0)