上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: 第950题,这题我是真的没想到居然会说使用队列去做,大神的答案,拿过来瞻仰一下 阅读全文
posted @ 2019-07-15 11:58 cutter_point 阅读(228) 评论(0) 推荐(0)
摘要: 数组类,简单级别完结。。。。 不容易啊,基本都是靠百度答案。。。。 希望做过之后后面可以自己复习,自己学会这个解法 阅读全文
posted @ 2019-07-12 10:20 cutter_point 阅读(255) 评论(0) 推荐(0)
摘要: 真的感觉有点难。。。 这还是简单级别。。。 我也是醉了 阅读全文
posted @ 2019-07-11 23:44 cutter_point 阅读(411) 评论(0) 推荐(0)
摘要: package y2019.Algorithm.array; /** * @ProjectName: cutter-point * @Package: y2019.Algorithm.array * @ClassName: IsOneBitCharacter * @Author: xiaof * @Description: TODO 717. 1-bit and 2-bit Char... 阅读全文
posted @ 2019-07-11 00:05 cutter_point 阅读(243) 评论(0) 推荐(0)
摘要: package y2019.Algorithm.array; /** * @ClassName FindUnsortedSubarray * @Description TODO 581. Shortest Unsorted Continuous Subarray * * Given an integer array, you need to find one continuous s... 阅读全文
posted @ 2019-07-09 22:42 cutter_point 阅读(242) 评论(0) 推荐(0)
摘要: package y2019.Algorithm.array; import java.util.HashSet; import java.util.Set; /** * @ProjectName: cutter-point * @Package: y2019.Algorithm.array * @ClassName: FairCandySwap * @Author: xiaof *... 阅读全文
posted @ 2019-07-09 14:51 cutter_point 阅读(277) 评论(0) 推荐(0)
摘要: package y2019.Algorithm.array; /** * @ProjectName: cutter-point * @Package: y2019.Algorithm.array * @ClassName: MatrixReshape * @Author: xiaof * @Description: TODO 566. Reshape the Matrix * ... 阅读全文
posted @ 2019-07-08 18:19 cutter_point 阅读(166) 评论(0) 推荐(0)
摘要: package y2019.Algorithm.array; import java.util.Arrays; import java.util.Stack; /** * @ClassName Rotate * @Description TODO 189. Rotate Array * * Given an array, rotate the array to the right ... 阅读全文
posted @ 2019-07-06 23:38 cutter_point 阅读(145) 评论(0) 推荐(0)
摘要: package y2019.Algorithm.array; /** * @ProjectName: cutter-point * @Package: y2019.Algorithm.array * @ClassName: SumEvenAfterQueries * @Author: xiaof * @Description: 985. Sum of Even Numbers Aft... 阅读全文
posted @ 2019-07-04 21:46 cutter_point 阅读(137) 评论(0) 推荐(0)
摘要: package y2019.Algorithm.array; /** * @ProjectName: cutter-point * @Package: y2019.Algorithm.array * @ClassName: Transpose * @Author: xiaof * @Description: 867. Transpose Matrix * * Given a ma... 阅读全文
posted @ 2019-07-04 21:46 cutter_point 阅读(82) 评论(0) 推荐(0)
摘要: package y2019.Algorithm.array; /** * @ProjectName: cutter-point * @Package: y2019.Algorithm.array * @ClassName: NumRookCaptures * @Author: xiaof * @Description: 999. Available Captures for Rook... 阅读全文
posted @ 2019-07-04 21:45 cutter_point 阅读(190) 评论(0) 推荐(0)
摘要: package y2019.Algorithm.array; /** * @ProjectName: cutter-point * @Package: y2019.Algorithm.array * @ClassName: IsToeplitzMatrix * @Author: xiaof * @Description: 766. Toeplitz Matrix * A matri... 阅读全文
posted @ 2019-07-04 21:44 cutter_point 阅读(133) 评论(0) 推荐(0)
摘要: package y2019.Algorithm.array; /** * @ProjectName: cutter-point * @Package: y2019.Algorithm.array * @ClassName: Fib * @Author: xiaof * @Description: 509. Fibonacci Number * The Fibonacci numbe... 阅读全文
posted @ 2019-07-04 21:43 cutter_point 阅读(106) 评论(0) 推荐(0)
摘要: package y2019.Algorithm.array; import java.util.*; /** * @ProjectName: cutter-point * @Package: y2019.Algorithm.array * @ClassName: CommonChars * @Author: xiaof * @Description: 1002. Find Comm... 阅读全文
posted @ 2019-07-04 21:41 cutter_point 阅读(228) 评论(0) 推荐(0)
摘要: package y2019.Algorithm.array; /** * @ProjectName: cutter-point * @Package: y2019.Algorithm.array * @ClassName: SortArrayByParityII * @Author: xiaof * @Description: 922. Sort Array By Parity II... 阅读全文
posted @ 2019-07-03 18:17 cutter_point 阅读(140) 评论(0) 推荐(0)
摘要: package y2019.Algorithm.array; /** * @ProjectName: cutter-point * @Package: y2019.Algorithm.array * @ClassName: SortArrayByParity * @Author: xiaof * @Description: 905. Sort Array By Parity * G... 阅读全文
posted @ 2019-07-03 18:16 cutter_point 阅读(133) 评论(0) 推荐(0)
摘要: package y2019.Algorithm.array; /** * @ProjectName: cutter-point * @Package: y2019.Algorithm.array * @ClassName: HeightChecker * @Author: xiaof * @Description: 1051. Height Checker * Students a... 阅读全文
posted @ 2019-07-03 18:15 cutter_point 阅读(196) 评论(0) 推荐(0)
摘要: package y2019.Algorithm.array; /** * @ProjectName: cutter-point * @Package: y2019.Algorithm.array * @ClassName: ArrayPairSum * @Author: xiaof * @Description: 561. Array Partition I * Given an ... 阅读全文
posted @ 2019-07-03 18:14 cutter_point 阅读(138) 评论(0) 推荐(0)
摘要: package y2019.Algorithm.array; /** * @ProjectName: cutter-point * @Package: y2019.Algorithm.array * @ClassName: TwoSum2 * @Author: xiaof * @Description: 167. Two Sum II - Input array is sorted ... 阅读全文
posted @ 2019-07-02 11:18 cutter_point 阅读(91) 评论(0) 推荐(0)
摘要: package y2019.Algorithm.array; /** * @ProjectName: cutter-point * @Package: y2019.Algorithm.array * @ClassName: MaxProfit2 * @Author: xiaof * @Description: 122. Best Time to Buy and Sell Stock ... 阅读全文
posted @ 2019-07-02 11:17 cutter_point 阅读(98) 评论(0) 推荐(0)
摘要: package y2019.Algorithm.array; import java.util.HashMap; import java.util.Map; /** * @ProjectName: cutter-point * @Package: y2019.Algorithm.array * @ClassName: MajorityElement * @Author: xiaof ... 阅读全文
posted @ 2019-07-02 11:16 cutter_point 阅读(75) 评论(0) 推荐(0)
摘要: package y2019.Algorithm.array; /** * @ProjectName: cutter-point * @Package: y2019.Algorithm.array * @ClassName: MaxProfit * @Author: xiaof * @Description: 121. Best Time to Buy and Sell Stock ... 阅读全文
posted @ 2019-07-02 11:16 cutter_point 阅读(76) 评论(0) 推荐(0)
摘要: package y2019.Algorithm.array; import java.util.ArrayList; import java.util.List; /** * @ProjectName: cutter-point * @Package: y2019.Algorithm.array * @ClassName: GetRow * @Author: xiaof * @De... 阅读全文
posted @ 2019-07-02 11:15 cutter_point 阅读(113) 评论(0) 推荐(0)
摘要: package y2019.Algorithm.array; import java.util.ArrayList; import java.util.List; /** * @ProjectName: cutter-point * @Package: y2019.Algorithm.array * @ClassName: Generate * @Author: xiaof * @... 阅读全文
posted @ 2019-07-02 11:14 cutter_point 阅读(256) 评论(0) 推荐(0)
摘要: 凉凉,看来想做好一个题还不容易啊。。。 有点难受。。。 1.看看题目吧 给定一个有序数组,依旧是二分查找,不同之处是如果没有找到指定数字,需要返回这个数字应该插入的位置。 本来想想着不就二分查找嘛,分分钟搞定。。。结果悲剧了,小瞧了这题了,活活被气死 2.上代码 废话不多说了,可恶上代码吧 先来看看 阅读全文
posted @ 2019-07-01 10:16 cutter_point 阅读(181) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 9 下一页