上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页
摘要: 83. Remove Duplicates from Sorted List Given a sorted linked list, delete all duplicates such that each element appear only once. Example 1: Example 2 阅读全文
posted @ 2019-04-07 20:35 mingL 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 缺角效果 I have a nice idea 阅读全文
posted @ 2019-03-28 00:04 mingL 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 内圆角 I have a nice idea 阅读全文
posted @ 2019-03-27 23:44 mingL 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 82. Remove Duplicates from Sorted List II Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from 阅读全文
posted @ 2019-03-22 23:19 mingL 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 81. Search in Rotated Sorted Array II Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,0,1,2,2 阅读全文
posted @ 2019-03-22 22:49 mingL 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 80. Remove Duplicates from Sorted Array II Given a sorted array nums, remove the duplicates in-place such that duplicates appeared at most twice and r 阅读全文
posted @ 2019-03-22 22:39 mingL 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 79. Word Search Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent ce 阅读全文
posted @ 2019-03-20 22:14 mingL 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 78. Subsets Given a set of distinct integers, nums, return all possible subsets (the power set). Note: The solution set must not contain duplicate sub 阅读全文
posted @ 2019-03-20 22:09 mingL 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 77. Combinations Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. Example: 阅读全文
posted @ 2019-03-20 21:56 mingL 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 76. Minimum Window Substring Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O( 阅读全文
posted @ 2019-03-20 21:49 mingL 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 75. Sort Colors Given an array with n objects colored red, white or blue, sort them in-place so that objects of the same color are adjacent, with the 阅读全文
posted @ 2019-03-20 21:39 mingL 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 74. Search a 2D Matrix Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers i 阅读全文
posted @ 2019-03-20 21:33 mingL 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 73. Set Matrix Zeroes Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in-place. Example 1: Example 2: 阅读全文
posted @ 2019-03-16 23:08 mingL 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 72. Edit Distance Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2. You have the following 3 阅读全文
posted @ 2019-03-15 23:41 mingL 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 71. Simplify Path Given an absolute path for a file (Unix-style), simplify it. Or in other words, convert it to the canonical path. In a UNIX-style fi 阅读全文
posted @ 2019-03-15 23:37 mingL 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 70. Climbing Stairs You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many dist 阅读全文
posted @ 2019-03-11 20:29 mingL 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 69. Sqrt(x) Implement int sqrt(int x). Compute and return the square root of x, where x is guaranteed to be a non-negative integer. Since the return t 阅读全文
posted @ 2019-03-11 20:26 mingL 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 68. Text Justification Given an array of words and a width maxWidth, format the text such that each line has exactly maxWidth characters and is fully 阅读全文
posted @ 2019-03-11 20:25 mingL 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 67. Add Binary Given two binary strings, return their sum (also a binary string). The input strings are both non-empty and contains only characters 1  阅读全文
posted @ 2019-03-11 20:12 mingL 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 66. Plus One Given a non-empty array of digits representing a non-negative integer, plus one to the integer. The digits are stored such that the most 阅读全文
posted @ 2019-03-11 20:06 mingL 阅读(285) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页