找到约 10000 条结果
  • leetcode讲解--647. Palindromic Substrings
    Given a string, your task is to count how many palindromic substrings in this string.
    2019-01-09
  • 装逼的最高境界---一行js代码完成一个简易版的贪吃蛇游戏
    有些奇淫技巧玩好的话,就能提升自己的逼格,这不,一行js代码实现一个贪吃蛇小游戏就成了装逼到了最高境界嘛!代码如下: {代码...} ps:我不是来装逼的。! 好了,让我们来运行一下这行代码,看一下效果: 看动图看着不过瘾?,好,你自己去线上看看demo可以撒,具体示例。 装逼完成,。 好了,言归正传,我怎么可能是来...
    2019-05-10
    10
  • Python socket编程
    Python 提供了两个基本的 socket 模块 Socket,它提供了标准的 BSD Sockets API。 SocketServer,它提供了服务器中心类,可以简化网络服务器的开发。 Socket 类型 套接字格式:socket(family,type[,protocal]) 使用给定的地址族、套接字类型、协议编号(默认为0)来创建套接字。 Socket 函数 注意点: TCP发送数据时,已...
    2015-05-12
  • SQL基础知识V2——SQL语句快速参考
    今天开始一个新的基础系列,是有关SQL基础知识的,以下是一些可以当工具书使用的参考语句,都是固定写法,需要的时候可以拿出来参考一下,一些不懂的可以暂时先跳过,紫色代码均是SQL语句的关键字~
    2020-10-13
  • 面试官让你说说==和equals()的区别,重写equals必须重写hashcode方法吗
    适用对象 ==:主要用于基本类型之间的比较(char、Boolean、byte、short、int、long、float、dobule),也可以用于比较对象
    2019-06-16
  • vim的替换
    本文约定:$ + 命令 表示在普通的bash的命令行下:  + 命令 表示在vim的ex(命令)模式, 按"Ctrl" + ":" 进入 替换命令的基本语法 :s + / + 被替换的内容 + / + 替换的内容 ( + 分隔符 + 模式 ) (其中:s(s表示switch,替换)) 当前中模式old的第一次出现修改为new :s / old / new /   (当斜杆为该行的最后一个字符时...
    2019-03-14
  • Python学习系列 - 进程和线程(九)
    Unix/Linux操作系统提供了一个fork()系统调用,可是Windows上面无法调用。由于Python是跨平台的,自然也应该提供一个跨平台的多进程支持。multiprocessing模块就是跨平台版本的多进程模块。
    2020-03-10
  • leetcode之两个相同字符之间的最长子字符串
    这里用HashMap记录一下每个字符的下标,在遍历字符串的时候,遇到相同的字符的时候,计算前后下标的差来得出子字符串的长度,然后通过对比记录最长的子字符串的长度。
    2020-10-27
  • ZigZag Conversion - LeetCode JavaScript
    The string " PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)
    2017-11-07
  • [LeetCode]6. ZigZag Conversion
    The string "PAYPALISHIRING" is written in a zigzag pattern on a givennumber of rows like this: (you may want to display this pattern in afixed font for better legibility)P A H N A P L S I I G Y I R And then read line by line:"PAHNAPLSIIGYIR" Write the code that will take a string and make this co...
    2019-04-19
  • NuGet Support for Visual Studio 2008
    Well, not really. A better title would be "How to Cobble Together NuGet Support for Visual Studio 2008 with External Tools and a Prayer." The point is, there are lots of folks using Visual Studio 2008 who would like NuGet support. I'm exploring this area and there's a half-dozen ways to make it h...
    2016-03-11
  • [编译原理] 正规式运算四个特例理解
    若 r,s 都是正规式 , 它们的正规集分别为R和S , 则(r|s)、(r·s)、(r)*也是正规式,它们分别表示的正规集是:R∪S,RS,R*。
    2022-04-05
  • 【kubevirt】VirtualMachineInstanceReplicaSet(vmis)-扩缩容-弹性伸缩
    VirtualMachineInstanceReplicaSet(vmis)确保指定数量的 VirtualMachineInstance(vmi) 副本在任何时候都在运行。我们可以这样理解,vmis就是kubernetes(k8s)里面的控制器(DeployMent,ReplicaSet)管理我们pod的副本数,实现扩缩容、回滚等。也可以借助HorizontalPodAutoscaler(hpa)实现弹性伸缩。这里我们就说...
    2022-05-02
  • 【C++】33 C++中的字符串类 string <sstream>-相关的头文件 istringstream
    string直接支持字符串的连接string直接支持字符串的大小比较string直接支持子串查找和提取string直接支持字符串的插入和替换
    2024-02-16
  • 跟我一起学Knative(7)--Knative Eventing
    Knative Eventing是一个旨在满足云原生开发的常见需求的系统,并提供可组合的原语以启用后期绑定事件源和事件使用者。具备以下设计目标:
    2020-05-17
  • k8s 源码client-go 系列 sharedProcessor
    sharedIndexInformer 相比普通的 informer 来说, 可以共享 reflector 反射器, 业务代码可以注册多个 resourceEventHandler 方法, 无需重复创建 informer 做监听及事件注册.
    2025-01-04
  • leetcode 496. Next Greater Element I
    You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. Find all the next greater numbers for nums1's elements in the corresponding places of nums2.
    2017-09-05