Leetcode 44. Wildcard Matching
摘要:题目:'?' Matches any single character.'*' Matches any sequence of characters (including the empty sequence).The matching should cover the entire input s...
阅读全文
posted @
2017-05-11 00:34
lantx
阅读(117)
推荐(0)
Leetcode 135. Candy
摘要:题目:There are N children standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following ...
阅读全文
posted @
2017-05-10 11:54
lantx
阅读(117)
推荐(0)
Leetcode 134. Gas Station
摘要:题目:There are N gas stations along a circular route, where the amount of gas at station i is gas[i].You have a car with an unlimited gas tank and it co...
阅读全文
posted @
2017-05-10 11:33
lantx
阅读(121)
推荐(0)
Leetcode 48 Rotate Image
摘要:题目:You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?思路:思路就是先进行对角...
阅读全文
posted @
2017-05-10 10:33
lantx
阅读(110)
推荐(0)
Leetcode 12. Integer to Roman
摘要:题目:Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.思路:1. 构造values,和numerals 数组保存 十进制数字 与罗马数字...
阅读全文
posted @
2017-05-10 10:06
lantx
阅读(102)
推荐(0)