码迷,mamicode.com
首页 >  
搜索关键字:open stack    ( 34043个结果
【BFS】752. Open the Lock
参考:https://labuladong.gitbook.io/algo/di-ling-zhang-bi-du-xi-lie/bfs-kuang-jia 问题: 求从【0000】四位密码锁初始状态,最少经过几步,能找到给定目标秘密target 另,其中若转到给定deadends的密码,则永远打不 ...
分类:其他好文   时间:2021-01-05 10:54:46    阅读次数:0
golang windows无GUI调用浏览器
package mainimport ( "os/exec" "syscall")// open opens the specified URL in the default browser of the user.func main() { // 无GUI调用 cmd := exec.Comman ...
分类:Windows程序   时间:2021-01-05 10:41:40    阅读次数:0
Python的组合数据类型
一、python的组合数据类型 (一) 列表 1、定义:有序、可变的元素集合 2、列表的创建 1 #空列表的创建 2 vacant_lst1 = [] 3 vacant_lst2 = list() 4 5 #非空列表的创建 6 lst = ["张三","李四","王五"] View Code 3. ...
分类:编程语言   时间:2021-01-04 11:18:44    阅读次数:0
缩点+拓扑模板
#include<iostream> #include<cstdio> #include<cstdlib> #include<cstring> #include<algorithm> #include<stack> #include<queue> #define ll long long using ...
分类:其他好文   时间:2021-01-04 10:30:49    阅读次数:0
python12文件的读写
#1.读本地文件,ANSI为GBK编码 p=open("e:\\a.txt") content=fp.read() print(content) fp.close() #2.读 fp=open("e:\\a.txt","r",encoding="gbk") fp.readlines() fp.clo ...
分类:编程语言   时间:2021-01-02 11:43:30    阅读次数:0
监控服务-zabbix介绍篇
一、常用的监控方案 开源监控软件:cacti、nagios、zabbix、smokeping、open-falcon等 1、Cacti 官方网站:https://www.cacti.net/ https://github.com/Cacti/cacti Cacti是基于LAMP平台展现的网络流量监测 ...
分类:其他好文   时间:2021-01-02 11:32:07    阅读次数:0
C# 操作打印机
获取当前设置能使用的打印机: 1 foreach (string sPrint in PrinterSettings.InstalledPrinters)//获取所有打印机名称 2 { 3 prints.Add(sPrint); 4 } 获取所有的打印机 获取打印机下的纸盒: 1 PrinterSe ...
分类:Windows程序   时间:2021-01-02 11:15:36    阅读次数:0
文件打开,读取,写入,关闭
自动导入模块:io 文件的打开:open函数,返回一个文件对象 fobj=open('文件路径') 文件的打开方式:mode='rb' r: 以读取的方式打开文件,文件不存在则报错 (默认值:rt) t: 文本模式 w:以写入的方式打开文件,,不能读取,有则清空,无则创建 a:以追加的方式打开文件, ...
分类:其他好文   时间:2021-01-02 11:10:40    阅读次数:0
java使用数组和链表实现栈和队列
前言 栈(Stack)是一种后进先出的数据结构,仅允许在栈顶插入、删除、读取。队列(Queue)是一种先进先出的数据结构,队头读取、删除,队尾插入。 使用数组实现栈 使用到的MyArrayList和MyLinkedList详情请查看 java实现一个自己的ArrayList和LinkedList p ...
分类:编程语言   时间:2021-01-01 12:59:10    阅读次数:0
迭代法 二叉树前序、中序、后序 遍历
前序 class Solution { public: vector<int> preorderTraversal(TreeNode* root) { vector<int> res; if (root == nullptr) { return res; } stack<TreeNode*> stk ...
分类:其他好文   时间:2021-01-01 12:36:16    阅读次数:0
34043条   上一页 1 ... 45 46 47 48 49 ... 3405 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!