- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 Leetcode 44. Wildcard Matching
题目:'?' Matches any single character.'*' Matches any sequence of characters (including the empty sequence).The matching should cover the entire input string (not partial).The function prototyp
2017-05-11 00:34:25 155
原创 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 requirements:Each child must have at
2017-05-10 11:54:28 151
原创 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 costs cost[i] of gas to travel from stat
2017-05-10 11:33:36 191
原创 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?思路:思路就是先进行对角翻转,然后作左右对称1 2 3
2017-05-10 10:33:00 179
原创 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 数组保存 十进制数字 与罗马数字的对应2. 遍历values数组,从最大开始,如果num比当前比较的
2017-05-10 10:06:31 240
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人