摘要:
Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ord... 阅读全文
posted @ 2015-12-11 16:24
ZHOU YANG
阅读(194)评论(0)推荐(0)
摘要:
Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results.Note: The input string may conta... 阅读全文
posted @ 2015-12-06 21:11
ZHOU YANG
阅读(831)评论(0)推荐(0)
摘要:
Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preserve the origi... 阅读全文
posted @ 2015-12-06 21:10
ZHOU YANG
阅读(218)评论(0)推荐(0)
摘要:
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle 障碍 and empty spac... 阅读全文
posted @ 2015-12-02 16:30
ZHOU YANG
阅读(159)评论(0)推荐(0)
摘要:
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol... 阅读全文
posted @ 2015-12-02 15:45
ZHOU YANG
阅读(223)评论(0)推荐(0)