LNode.h #pragma once class LNode { friend class LinkStack; int data; LNode* next; }; LinkStack.h #pragma once #include"LNode.h" #include<iostream> usi ...
分类:
其他好文 时间:
2020-03-26 12:14:15
阅读次数:
73
Problem : Given a sorted array nums, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate ...
分类:
其他好文 时间:
2020-03-26 01:03:12
阅读次数:
78
在一个项目文件夹下面建立如图所示的文件和文件夹 include文件夹下放.h文件,内容为声明一个函数; 1 #pragma once 2 3 void helloslam(); src下面放源码文件,对应的内容如下 1 /*sayHello.cpp文件内容*/ 2 3 #include<sayHel ...
分类:
其他好文 时间:
2020-03-24 12:54:42
阅读次数:
75
最近排查线上问题,遇到几次线上日志从凌晨0点到全天的某一个随机的时刻日志丢失了,如图所示,打开每天的第一个文件不是从0点开始的日志,莫名其妙的丢失一部分日志。 项目是spring-boot项目,日志的组件是log4j2 version=1.5.12.RELEASEgroupId=org.spring ...
分类:
其他好文 时间:
2020-03-23 20:13:08
阅读次数:
102
参考:https://kubernetes.io/zh/docs/concepts/workloads/controllers/statefulset/ https://www.kubernetes.org.cn/deployment StatefulSet StatefulSet是为了解决有状态服 ...
分类:
Web程序 时间:
2020-03-21 18:03:27
阅读次数:
81
PHP引入自定义函数库 路径的概念 相对路径 相对当前目录去引入文件, 把当前文件夹作为参照物 例子: ./ ../ 会依据我们代码文件的执行位置来改变 ./ 当前目录 ../ 上一级目录 ./a.php 当前目录下面的a.php文件 绝对路径 根据系统的根目录来寻找文件 例子: C:\phpstu ...
分类:
Web程序 时间:
2020-03-21 10:01:58
阅读次数:
101
Concurrency is about dealing with lots of things at once. Parallelism is about doing lots of things at once. Not the same, but related. One is about s ...
分类:
其他好文 时间:
2020-03-21 09:32:11
阅读次数:
59
1.1 什么是字节码? Java 在刚刚诞生之时曾经提出过一个非常著名的口号: “ 一次编写,到处运行(write once,run anywhere) ”,这句话充分表达了软件开发人员对冲破平台界限的渴求。“与平台无关”的理想最终实现在操作系统的运用层上: 虚拟机提供商开发了许多可以运行在不同平台 ...
分类:
编程语言 时间:
2020-03-19 20:08:21
阅读次数:
77
/*一个整型数组里除了两个数字之外,其他的数字都出现了两次。请写程序找出这两个只出现一次的数字。 */ import java.util.*; public class Class45 { public void FindNumsAppearOnce(int[] array, int num1[], ...
分类:
编程语言 时间:
2020-03-19 13:48:40
阅读次数:
61
一,介绍 定义: In CPython, the global interpreter lock, or GIL, is a mutex that prevents multiple native threads from executing Python bytecodes at once. Th ...
分类:
编程语言 时间:
2020-03-18 23:43:44
阅读次数:
76