logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Mac:VM虚拟机Win系统分辨率太高

关掉VM虚拟机设置中的use full resolution for Retina display

C++:清空stl的stack容器

很遗憾,没有现成函数可以采用while(!stack.empty()) empty().pop();

LeetCode水题 - No.214,225,226,227,229,236,240,241

/** @lc app=leetcode id=66 lang=cpp** [66] Plus One*/// @lc code=startclass Solution {public:vector<int> plusOne(vector<int>& digits) {vector<int> ans;int N = digits.size();int m

#leetcode
python:书写模板

#!/home/gxd/venv/py3env/bin python# -*- coding:utf-8 -*-# Author:ShellDawndef main():print("YES")passif __name__ == '__main__':main()pass

#python
Mac homebrew 安装 python

brew install python#自动安装最新版的python2brew install python3#自动安装最新版的python3#然后手动设置python优先级在terminal中,使用python命令是系统原python,使用python2命令是新装python2,使用python3命令是新装python3.所以,pip2是新装python2的管理器,p...

#python
mysql:sql insert into * values * (插入datetime类型)

insert into tweets values('2017-03-02 15:22:22');insert into tweets values('2017-03-02 16:34');//末尾秒,分,时,可以依次省略,但日,月,年不可以省略

#mysql#sql
mysql:sql insert into * values * (插入datetime类型)

insert into tweets values('2017-03-02 15:22:22');insert into tweets values('2017-03-02 16:34');//末尾秒,分,时,可以依次省略,但日,月,年不可以省略

#mysql#sql
No.23 - POJ1459 邻接矩阵网络流

// ShellDawn// POJ1459// No.23#include<cstdio>#include<cstring>#include<algorithm>#include<iostream>#include<queue>#define MM(x) memset(x,0,sizeof(x))#define IN...

No.2 POJ1562

DFS// ShellDawn// 2019-07-10// POJ1562#include<cstdio>#include<algorithm>#include<cstring>#include<iostream>#define MM(x) memset(x,0,sizeof(x));using namespace std;#...

No.6 - POJ1789 prim MST 遍历点 稠密图

Prim算法:// ShellDawn// POJ1789// No.6#include<cstdio>#include<cstring>#include<iostream>#include<algorithm>#include<string>#define MM(x) memset(x,0,sizeof(x))us...

到底了