- 博客(4)
- 资源 (5)
- 收藏
- 关注
原创 leetcode 68:Text Justification细致分析,java实现
Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified. You should pack your words in a greedy approach; that i
2015-11-12 20:49:58 821
原创 leetcode 166:Fraction to Recurring Decimal java实现(细致分析)
实现除法运算,结果返回为String类型的浮点数。必须要考虑的就是循环小数,当余数跟之前重复的时候就出现了循环小数。可以根据这个来设计我们的算法。
2015-11-05 15:47:03 895
原创 leetcode 149:Max Points on a Line(java实现)细致分析
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. Subscribe to see which companies asked this question 题目分析:给定任意多个点,找到在一条线上最多的点。都知道两点构成一条直线,如果要求
2015-11-04 23:35:56 1583
原创 leetcode 65:Valid Number 使用字符串匹配的细致分析
Validate if a given string is numeric. Some examples: "0" => true " 0.1 " => true "abc" => false "1 a" => false "2e10" => true Note: It is intended for the problem statement to be ambiguo
2015-11-04 22:19:51 789
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人