- 博客(6)
- 收藏
- 关注
原创 leetcode.55.Jump Game(medium)[贪心算法]
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that position.Determine i
2016-12-23 16:23:13 373
原创 leetcode 461.Hamming Distance(easy)[位运算]
The Hamming distance between two integers is the number of positions at which the corresponding bits are different.Given two integers x and y, calculate the Hamming distance.Note:0 ≤ x,
2016-12-21 11:37:04 368
原创 leetcode 434.Number of Segments in a String(easy)[分割字符串]
Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters.Please note that the string does not contain any non-printable characters.
2016-12-17 17:24:55 338
原创 455.leetcode Assign Cookies(easy)[数组处理]
Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a greed factor gi, which is the minimum size of a c
2016-12-16 15:59:25 346
原创 463.leetcode Island Perimeter(easy)[二维数组处理]
You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontally/vertically (not diagonally). The grid is completely
2016-12-14 16:43:01 360
原创 412.leetciode Fizz Buzz(easy)[字符串 整数处理]
Write a program that outputs the string representation of numbers from 1 to n.But for multiples of three it should output “Fizz” instead of the number and for the multiples of five output “Buzz”.
2016-12-14 15:58:44 222
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人