Jason‘s Blog


  • Home

  • About

  • Tags

  • Categories

  • Archives

  • Sitemap

  • Search

232用栈实现队列

Posted on 2020-04-22
Words count in article: 0 | Reading time ≈ 1
Read more »

225用队列实现栈

Posted on 2020-04-22
Words count in article: 0 | Reading time ≈ 1
Read more »

155最小栈

Posted on 2020-04-22
Words count in article: 405 | Reading time ≈ 1
155最小栈下面是题目 下面是题目给出的模板123456789101112131415161718192021222324252627282930class MinStack {public: /** initialize your data structure here. */ ...
Read more »

20有效的括号

Posted on 2020-04-22
Words count in article: 263 | Reading time ≈ 1
下面是题目 下面是题目给出的代码123456class Solution {public: bool isValid(string s) { }}; 我第一时间觉得既然(){} []需要相互配对,为什么不用map存储呢?123456 ...
Read more »

1047删除字符串中所有的相邻重复项

Posted on 2020-04-22
Words count in article: 370 | Reading time ≈ 1
1047删除字符串中所有的相邻重复项下面是题目 下面是题目给出的模板12345class Solution {public: string removeDuplicates(string S) { }}; 这里给出两个解法,第一种是我自己想出来的原 ...
Read more »

844比较含退格的字符串

Posted on 2020-04-22
Words count in article: 192 | Reading time ≈ 1
844比较含退格的字符串下面是题目 下面是题目给出的代码12345class Solution {public: bool backspaceCompare(string S, string T) { }}; 解答 还是要先判断特殊字符,在判断特殊 ...
Read more »

682棒球比赛

Posted on 2020-04-22
Words count in article: 354 | Reading time ≈ 1
下面是题目 下面是题目给出的代码12345class Solution {public: int calPoints(vector<string>& ops) { }}; 因为是简单题,而且我思考的时候并没有发生很严重的卡 ...
Read more »

496下一个更大的数

Posted on 2020-04-21
Words count in article: 669 | Reading time ≈ 2
496下一个更大的数下面是题目 下面是题目给出的模板123456class Solution {public: vector<int> nextGreaterElement(vector<int>& nums1, vector<int>&a ...
Read more »

Javascript-8函数

Posted on 2020-04-21
Words count in article: 5.3k | Reading time ≈ 21
JavaScript-8函数概况 形参实参 this 对象的方法 构造函数 函数即对象 闭包 函数可以嵌套在其他函数中定义,这样他们就可以访问他们被定义时所处的作用域中的任何变量,这意味着Javascript函数构成了一个闭包 8.1函数定义 两种方式 函数定义表达式 函数声明语句 函数定 ...
Read more »

Javascript-7数组

Posted on 2020-04-21
Words count in article: 2.4k | Reading time ≈ 9
Javascript-7数组概况 数组是值得有序集合 Javascript数组是动态的:根据需要会增长或缩减 Javascript数组可能是稀疏的:数组元素之间可以有空缺 对于非稀疏数组,lenth属性就是元素的个数 对于稀疏数组,lenth比所有元素的索引要大 7.1创建数组创建方法使用 ...
Read more »
<i class="fa fa-angle-left"></i>1…353637…44<i class="fa fa-angle-right"></i>

Jason

437 posts
11 categories
61 tags
GitHub E-Mail
Links
  • 友链:杨弘的博客
  • 友链:赵奕轲的博客
  • Like it, STAR ME
0%
© 2025 Jason