随笔分类 -  算法

无聊学学算法
摘要:package y2019.Algorithm.array.medium; import java.util.*; /** * @ProjectName: cutter-point * @Package: y2019.Algorithm.array.medium * @ClassName: CombinationSum * @Author: xiaof * @Description... 阅读全文
posted @ 2019-07-18 10:48 cutter_point 阅读(180) 评论(0) 推荐(0)
摘要:package y2019.Algorithm.array.medium; import java.util.Arrays; /** * @ProjectName: cutter-point * @Package: y2019.Algorithm.array.medium * @ClassName: 阅读全文
posted @ 2019-07-17 11:50 cutter_point 阅读(221) 评论(0) 推荐(0)
摘要:package y2019.Algorithm.array.medium; import java.util.ArrayList; import java.util.List; /** * @ProjectName: cutter-point * @Package: y2019.Algorithm.array.medium * @ClassName: PancakeSort * @A... 阅读全文
posted @ 2019-07-16 09:58 cutter_point 阅读(207) 评论(0) 推荐(0)
摘要:package y2019.Algorithm.array.medium; /** * @ClassName UniquePathsWithObstacles * @Description TODO 63. Unique Paths II * * A robot is located at the top-left corner of a m x n grid (marked 'Sta... 阅读全文
posted @ 2019-07-15 23:15 cutter_point 阅读(399) 评论(0) 推荐(0)
摘要:第950题,这题我是真的没想到居然会说使用队列去做,大神的答案,拿过来瞻仰一下 阅读全文
posted @ 2019-07-15 11:58 cutter_point 阅读(229) 评论(0) 推荐(0)
摘要:数组类,简单级别完结。。。。 不容易啊,基本都是靠百度答案。。。。 希望做过之后后面可以自己复习,自己学会这个解法 阅读全文
posted @ 2019-07-12 10:20 cutter_point 阅读(255) 评论(0) 推荐(0)
摘要:真的感觉有点难。。。 这还是简单级别。。。 我也是醉了 阅读全文
posted @ 2019-07-11 23:44 cutter_point 阅读(412) 评论(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 阅读(244) 评论(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 阅读(243) 评论(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 阅读(279) 评论(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 阅读(167) 评论(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 阅读(147) 评论(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 阅读(83) 评论(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 阅读(134) 评论(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 阅读(107) 评论(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 阅读(229) 评论(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 阅读(142) 评论(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 阅读(135) 评论(0) 推荐(0)