• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
kakaxisisan
这里以后只放刷题了哦论文转战知乎了哦
博客园 首页 新随笔 联系 订阅 订阅 管理
1 2 3 4 5 ··· 10 下一页

2019年8月23日

66. Plus One
摘要: description: 给 vector 表示的数字 +1 Note: Example: answer: relative point get√: hint : 从最后开始检查,是 9 就 变成 0, 再检查前面的一位,直到不是 9 了,就直接加一然后返回,如果最前需要加位就加。 阅读全文
posted @ 2019-08-23 20:58 kakaxisisan 阅读(254) 评论(0) 推荐(0)
 
 

2019年8月18日

65. Valid Number
摘要: description: 看给定的数字是否是合法数字 Note: Example: answer: class Solution { public: bool isNumber(string s) { int len = s.size(); int left = 0, right = len 1; 阅读全文
posted @ 2019-08-18 21:27 kakaxisisan 阅读(129) 评论(0) 推荐(0)
 
 

2019年8月12日

64. Minimum Path Sum 动态规划
摘要: description: Given a m x n grid filled with non negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers alo 阅读全文
posted @ 2019-08-12 22:11 kakaxisisan 阅读(108) 评论(0) 推荐(0)
 
 

2019年8月11日

63. Unique Paths II 动态规划
摘要: description: https://leetcode.com/problems/unique paths/ 机器人从一堆方格的左上角走到右下角,只能往右或者往下走 ,问有几种走法,这个加了难度,在矩阵中加了障碍物 Note: Example: answer: class Solution { 阅读全文
posted @ 2019-08-11 21:05 kakaxisisan 阅读(142) 评论(0) 推荐(0)
 
 

2019年8月10日

62. Unique Paths
摘要: description: https://leetcode.com/problems/unique paths/ 机器人从一堆方格的左上角走到右下角,只能往右或者往下走 ,问有几种走法 Note: Example: answer: class Solution { public: int uniqu 阅读全文
posted @ 2019-08-10 20:02 kakaxisisan 阅读(95) 评论(0) 推荐(0)
 
 

2019年8月9日

61. Rotate List
摘要: description: Given a linked list, rotate the list to the right by k places, where k is non negative. Note: Example: answer: relative point get√: hint 阅读全文
posted @ 2019-08-09 23:00 kakaxisisan 阅读(80) 评论(0) 推荐(0)
 
 

2019年8月8日

60. Permutation Sequence
摘要: description: 找到全排列中的第k个序列 The set [1,2,3,...,n] contains a total of n! unique permutations. By listing and labeling all of the permutations in order, 阅读全文
posted @ 2019-08-08 21:42 kakaxisisan 阅读(96) 评论(0) 推荐(0)
 
 

2019年8月3日

59. Spiral Matrix II ***
摘要: description: 螺旋型填充矩阵 Note: Example: answer: relative point get√: hint : 阅读全文
posted @ 2019-08-03 21:36 kakaxisisan 阅读(107) 评论(0) 推荐(0)
 
 

2019年8月2日

58. Length of Last Word
摘要: description: 找到一句话中最后一个单词的长度 Note: Example: answer: relative point get√: hint : 先把句子开头和结尾的空格去了 阅读全文
posted @ 2019-08-02 15:47 kakaxisisan 阅读(113) 评论(0) 推荐(0)
 
 

2019年8月1日

57. Insert Interval
摘要: description: 插入新的区间,涉及到区间的合并. Note: Example: answer: class Solution { public: vector insert(vector & intervals, vector& newInterval) { int n = interva 阅读全文
posted @ 2019-08-01 22:15 kakaxisisan 阅读(77) 评论(0) 推荐(0)
 
 
1 2 3 4 5 ··· 10 下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3