上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 29 下一页
摘要: Implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or more of the preceding element. 阅读全文
posted @ 2018-09-03 13:24 jasminemzy 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Implement wildcard pattern matching with support for '?' and '*'.* '?' Matches any single character.* '*' Matches any sequence of characters (includin 阅读全文
posted @ 2018-09-03 10:38 jasminemzy 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.Return all such po 阅读全文
posted @ 2018-09-03 07:42 jasminemzy 阅读(281) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty binary search tree and a target value, find k values in the BST that are closest to the target. Example Given root = {1}, target = 0 阅读全文
posted @ 2018-09-03 04:16 jasminemzy 阅读(298) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty binary search tree and a target value, find the value in the BST that is closest to the target.ExampleGiven root = {1}, target = 4.4 阅读全文
posted @ 2018-08-31 13:13 jasminemzy 阅读(250) 评论(0) 推荐(0) 编辑
摘要: Find K-th largest element in an array.ExampleIn array [9,3,2,4,8], the 3rd largest element is 4.In array [1,2,3,4,5], the 1st largest element is 5, 2n 阅读全文
posted @ 2018-08-31 06:12 jasminemzy 阅读(231) 评论(0) 推荐(0) 编辑
摘要: Given an array nums of integers and an int k, partition the array (i.e move the elements in "nums") such that:* All elements < k are moved to the left 阅读全文
posted @ 2018-08-30 05:43 jasminemzy 阅读(129) 评论(0) 推荐(0) 编辑
摘要: Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of 阅读全文
posted @ 2018-08-30 03:06 jasminemzy 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Given an array of n objects with k different colors (numbered from 1 to k), sort them so that objects of the same color are adjacent, with the colors 阅读全文
posted @ 2018-08-29 08:59 jasminemzy 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, 阅读全文
posted @ 2018-08-15 09:13 jasminemzy 阅读(178) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 29 下一页