在Kubernetes部署GitLab
关于[链接][链接]CSDN、GitHub、知乎、开源中国、思否、掘金、简书、华为云、阿里云、腾讯云、哔哩哔哩、今日头条、新浪微博、个人博客全网可搜《小陈运维》文章主要发布于微信公众号
2022-09-12
查找字符串最长回文
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.
2017-07-01
C Style『泛型』(下):通用的Stack
我们需要用void*来保存内容;由于void*不包含其他信息,所以需要eleSize来指定要进出栈的对象的大小;内部两个量,用于记录有多少个元素在栈里面,分配了多少空间来存放这些对象。 接下来定义的几个函数很容易理解,新初始化一个栈,销毁处理栈,进栈、出栈操作,eleAddr有着不同的含义,进栈操作指的是待进栈对象的地址...
2020-05-11
【leetcode】30. Substring with Concatenation of All Words 精确匹配的子串集
You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concatenation of each word in words exactly once and without any intervening characters.
2016-10-25
每日一练(23):第一个只出现一次的字符
title: 每日一练(23):第一个只出现一次的字符categories:[剑指offer]tags:[每日一练]date: 2022/02/22每日一练(23):第一个只出现一次的字符在字符串 s 中找出第一个只出现一次的字符。如果没有,返回一个单空格。 s 只包含小写字母。示例 1:输入:s = "abaccdeff"输出:'b'示例 2:输入:s = ""输出:' '限制:0 &l...
2022-02-22
利用反射机制破坏单例模式
这里采用了懒汉的单例模式,顺带说一句我自己对懒汉饿汉的理解:懒汉就是在类加载的时候并不创建对象的实例,在你用到的时候才去创建一个实例。饿汉就是不管你用不用到,这个类加载的时候就创建了一个实例。用到的时候就返回那个已经创建好的实例。根本的区别在于创建实例的时机不同。
js 生成UUID的几种方法
UUID(Universally Unique IDentifier) 全局唯一标识符。UUID是一种由算法生成的二进制长度为128位的数字标识符。UUID的格式为“xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”,其中的 x 是 0-9 或 a-f范围内的一个32位十六进制数。在理想情况下,任何计算机和计算机集群都不会生成两个相同的UUID。
LeetCode | 0392. Is Subsequence判断子序列【Python】
You may assume that there is only lower case English letters in both s and t. t is potentially a very long (length ~= 500,000) string, and s is a short string (<=100).
2020-02-20
Oracle 查看最近 60s 资源消耗
指定时间范围为:ASH.SAMPLE_TIME >= SYSDATE - 60 / 24 / 60 / 60),格式原因,调整为/ {代码...}
2021-07-17
idea怎么配置risc-v语法高亮呢?
.align.data.endm.global.incbin.macro.quad.section.macro.endm.irp.irpc.if.else.else_if.endif.equ.equiv.fill.incbin.incdir.include.incdir.pushsection.popsection.repeat.size.type.val.ascii.asciz.balign.byte.data.define.double.extern.float.globl.global.hword.include.int.lcomm.local.long.org.quad.sect...
2024-07-11
LeetCode: 344. Reverse String
Write a function that takes a string as input and returns the string reversed.
2016-08-08
JDK Tools Notes for jps, jstate, and jinfo
List the Local Virtual Machine Identifier (LVMID), similar to ps in UNIX. It's usually the first step to determine which process to monitor in deep.
2016-11-14
C++ : vector与string的内存分配问题
{代码...}
2017-04-22
深度残差网络+自适应参数化ReLU激活函数(调参记录13)
从以往的调参结果来看,过拟合是最主要的问题。本文在调参记录12的基础上,将层数减少,减到9个残差模块,再试一次。 自适应参数化ReLU激活函数原理如下: Keras程序如下: {代码...} 实验结果如下: {代码...} 过拟合依然严重,还是得继续减小网络。 Minghang Zhao, Shisheng Zhong, Xuyun Fu, Baoping Tang, Shaojiang...
2020-05-11
面试题java 如何将科学计数法显示在控制台
代码实现 {代码...} 结果
2019-06-17
1790. 仅执行一次字符串交换能否使两个字符串相等
给你长度相等的两个字符串 s1 和 s2 。一次 字符串交换 操作的步骤如下:选出某个字符串中的两个下标(不必不同),并交换这两个下标所对应的字符。
2022-10-11
【Java】对Java对象进行排序
看异常信息可以看到Student不能被转换为Comparable,标志着我们的Student类需要实现Comparable接口。那么我们就来试试实现Comparable接口的情况
2019-09-18