• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






乘风有时

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页

2017年6月17日

[LeetCode]Patching Array
摘要: 题目:Patching Array Given a sorted positive integer array nums and an integer n, add/patch elements to the array such that any number in range [1, n]inc 阅读全文
posted @ 2017-06-17 21:54 乘风有时 阅读(168) 评论(0) 推荐(0)
 
[LeetCode]Longest Increasing Path in a Matrix
摘要: 题目:Longest Increasing Path in a Matrix Given an integer matrix, find the length of the longest increasing path. From each cell, you can either move to 阅读全文
posted @ 2017-06-17 21:38 乘风有时 阅读(149) 评论(0) 推荐(0)
 

2017年6月8日

[LeetCode]Odd Even Linked List
摘要: 题目:Odd Even Linked List Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the 阅读全文
posted @ 2017-06-08 22:30 乘风有时 阅读(270) 评论(0) 推荐(0)
 

2017年6月7日

[LeetCode]Count of Range Sum
摘要: 题目:Count of Range Sum Given an integer array nums, return the number of range sums that lie in [lower, upper] inclusive.Range sum S(i, j) is defined a 阅读全文
posted @ 2017-06-07 22:19 乘风有时 阅读(318) 评论(0) 推荐(0)
 

2017年5月18日

[LeetCode]Reverse Bits
摘要: 题目:Reverse Integer Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 Have you thought about this? Here are so 阅读全文
posted @ 2017-05-18 22:52 乘风有时 阅读(316) 评论(0) 推荐(0)
 
C++基础之关联容器
摘要: 关联容器 关联容器和顺序容器的本质区别:关联容器是通过键存取和读取元素、顺序容器通过元素在容器中的位置顺序存储和访问元素。因此,关联容器不提供front、push_front、pop_front、back、push_back以及pop_back,此外对于关联容器不能通过容器大小来定义,因为这样的话将 阅读全文
posted @ 2017-05-18 11:00 乘风有时 阅读(233) 评论(0) 推荐(0)
 

2017年5月17日

[LeetCode]Wiggle Sort
摘要: 题目:Wiggle Sort II Given an unsorted array nums, reorder it such that nums[0] < nums[1] > nums[2] < nums[3].... Example:(1) Given nums = [1, 5, 1, 1, 6 阅读全文
posted @ 2017-05-17 21:44 乘风有时 阅读(235) 评论(0) 推荐(0)
 
C++基础之string类
摘要: string也是属于顺序容器,但是string类很重要且经常使用,因此在这里单独记录。 string的操作总结 string(const char *s,int n); //用c字符串s初始化,s应至少含有n个字符string(s2,pos2); //s2从下标pos2开始的字符的拷贝,pos2>s 阅读全文
posted @ 2017-05-17 09:41 乘风有时 阅读(292) 评论(0) 推荐(0)
 

2017年5月16日

C++基础之迭代器
摘要: 迭代器的分类 插入迭代器(insert iterator):绑定一个容器上后可以向容器中插入元素; 流迭代器(stream iterator):绑定在输入输出流中,可以遍历关联的流; 反向迭代器(reverse iterator):迭代器向后移动,标准库容器中除了forward_list外都有反向迭 阅读全文
posted @ 2017-05-16 22:48 乘风有时 阅读(497) 评论(0) 推荐(0)
 

2017年5月11日

[LeetCode]Range Sum Query
摘要: 题目:Range Sum Query - Immutable Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Note: 给定 阅读全文
posted @ 2017-05-11 22:48 乘风有时 阅读(285) 评论(0) 推荐(0)
 
上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页