2014年10月6日

Add Binary

摘要: Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". 类似模拟十进制加法 阅读全文

posted @ 2014-10-06 21:57 bug睡的略爽 阅读(145) 评论(0) 推荐(0) 编辑

Minimum Path Sum

摘要: Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. 阅读全文

posted @ 2014-10-06 19:22 bug睡的略爽 阅读(131) 评论(0) 推荐(0) 编辑

Unique Paths I&&II

摘要: Unique Paths A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or r 阅读全文

posted @ 2014-10-06 19:07 bug睡的略爽 阅读(135) 评论(0) 推荐(0) 编辑

Insert Interval

摘要: Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that the intervals were initia 阅读全文

posted @ 2014-10-06 18:05 bug睡的略爽 阅读(118) 评论(0) 推荐(0) 编辑

Merge Intervals

摘要: Given a collection of intervals, merge all overlapping intervals. For example,Given [1,3],[2,6],[8,10],[15,18],return [1,6],[8,10],[15,18]. 合并重复区间 先让区 阅读全文

posted @ 2014-10-06 16:32 bug睡的略爽 阅读(112) 评论(0) 推荐(0) 编辑

N-Queens I&&II

摘要: The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer n, return all 阅读全文

posted @ 2014-10-06 15:26 bug睡的略爽 阅读(182) 评论(0) 推荐(0) 编辑

Anagrams

摘要: Given an array of strings, return all groups of strings that are anagrams. Note: All inputs will be in lower-case. For example: Input: ["tea","and","a 阅读全文

posted @ 2014-10-06 10:15 bug睡的略爽 阅读(110) 评论(0) 推荐(0) 编辑

导航