支持S3协议的S3cmd工具简单使用
二:使用方法1.配置Access Key ID 和 Secret Access Key #s3cmd --configure2.列举所有的Buckets
2024-08-12
java菜鸟教程学习(完整版)
java实例一.Java 字符串1.Java 实例 – 字符串比较2.Java 实例 - 查找字符串最后一次出现的位置3.Java 实例 - 删除字符串中的一个字符4.Java 实例 - 字符串替换5.Java 实例 - 字符串反转6.Java 实例 - 字符串查找7.Java 实例 - 字符串分割8.Java 实例 - 字符串分割(StringTokenizer)9.Java 实例 - 字符串小写转大写10.Jav...
2024-10-14
正则表达式匹配
匹配应该覆盖整个字符串 (s) ,而不是部分字符串。说明:s 可能为空,且只包含从 a-z 的小写字母。p 可能为空,且只包含从 a-z 的小写字母,以及字符 . 和 *。题目及示例传送门
Ruby Comparable模块
Comparable模块对象的排序。继承该模块的类必须定义<=>方法,用于比较该类和另一个对象,通过是小于,等于,还是小与,返回-1,0,或者+1。如果两外一个对象没有继承Comparable,则返回nil。Comparable使用<=>来继承传统的<, <=, ==, >=, 和 >比较操作符和方法between?
2014-06-12
LeetCode Weekly Contest 31
LeetCode Weekly Contest 31Q3 (7)Give a map with height int, width int; tree []int; squirrel []int; nuts [][]intCalculate the minimum steps for the squirrel to collect all the nuts and store them in the tree
2017-06-05
【数据结构】39_字符串类的创建 (上)
无缝实现 String 对象与 char *字符串的互操作 操作符重载函数需要考虑是否支持 const 版本 通过 C 语言中的字符串函数实现 String 的成员函数
2020-01-19
sql语句练习50题(Mysql版)
–1.学生表Student(s_id,s_name,s_birth,s_sex) --学生编号,学生姓名, 出生年月,学生性别–2.课程表Course(c_id,c_name,t_id) – --课程编号, 课程名称, 教师编号–3.教师表Teacher(t_id,t_name) --教师编号,教师姓名–4.成绩表Score(s_id,c_id,s_score) --学生编号,课程编号,分数
2020-11-04
神奇的自产生程序
最近读到冯·诺依曼的《Theory of Self-Reproducing Automata》的中译本,被自复制自动机理论深深吸引了! 问题(自产生程序):编写一个程序,不读取任何输入,只把自己的源代码输出。 这个问题是个非常本质的问题,跟使用什么编程语言无关(不要想到使用反射之类的东西)。 试想,如果要输出自己的源代码,那么,显然,...
sql练习1(50附答案)
SQL练习1、表结构 {代码...} 2、测试数据 {代码...} 3、测试题 {代码...} 练习题问题-- 为什么用left join而且加判断 OR c.c_id = NULL? 右表数据为空为什么考虑?总结思路表连接就是先join得到一个表,然后再join条件得到另一个表一般使用left join,过滤用join用left join时,关联条件需要判断右表数据有没有为NULL的
2020-09-27
经典Mysql50道练习题
– 建表– 学生表CREATE TABLE Student(s_id VARCHAR(20),s_name VARCHAR(20) NOT NULL DEFAULT '',s_birth VARCHAR(20) NOT NULL DEFAULT '',s_sex VARCHAR(10) NOT NULL DEFAULT '',PRIMARY KEY(s_id));– 课程表CREATE TABLE Course(c_id VARCHAR(20),c_name VARCHAR(20) NOT NULL DEFAULT '',t_id VARCHAR(20) NOT NULL...
[LintCode] Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters.
2016-03-10
c# 冷存储示例
{代码...}
2016-09-28
[LeetCode] 205. Isomorphic Strings
Two strings are isomorphic if the characters in s can be replaced to get t.
2018-10-31
前端笔记 - 字符串
按位NOT ~:它将数字转换为 32-bit 整数(如果存在小数部分,则删除小数部分),然后对其二进制表示形式中的所有位均取反。 {代码...}
2021-04-10
[LintCode/LeetCode] Longest Palindrome Substring
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring.
2016-02-25
[LintCode/LeetCode] Count Binary Substrings
Give a string s, count the number of non-empty (contiguous) substrings that have the same number of 0's and 1's, and all the 0's and all the 1's in these substrings are grouped consecutively.
2018-07-18
go 的 slice 底层的 "陷阱"
特别要注意的时,当我们使用下标范围来得到 子切片 时,子切片 和 父切片 指向的 底层数组 在此时是 同一片内存地址。后续 子切片 可能会因为 容量cap 不足而重新申请容量时,从 父切片 的 底层数组 中独立出来。
2022-08-29