自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 收藏
  • 关注

原创 链表栈的实现

#include <iostream>using namespace std;class Stack {private: public: Stack() {} virtual ~Stack() {} virtual int pop() = 0; virtual void push(const int& object)=0; virtual const int& getTop()const = 0; virtual int length()const = 0

2020-09-15 09:52:27 608

原创 C++———顺序栈的实现

#include <iostream>using namespace std;template <typename T>class Stack {private: public: Stack() {} virtual ~Stack() {} virtual T pop() = 0; virtual void push(const T& object)=0; virtual const T& getTop()const = 0; virtual

2020-09-08 23:54:10 104

原创 1528. 重新排列字符串

class Solution {public: string restoreString(string s, vector<int>& indices) { const int begin = 0, end = s.length()-1; char *OBJ = new char[end + 1]; string answer=""; for (int i = begin; i <=end; i++)

2020-09-02 15:32:02 75

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除