2021-02-12:如何判断两个字符串是否互为旋转字符串? 福哥答案2021-02-12: 假设字符串str1是“ABCDE”,字符串str2是“CDEAB”。字符串str2可以拆分成“CDE”和“AB”,可以拼成“ABCDE”。所以str1和str2互为旋转字符串。 解法:1.判断str1和st ...
分类:
其他好文 时间:
2021-02-16 12:18:04
阅读次数:
0
1. arguments为什么不是数组?如何证明? arguments 是没有数组的slice等方法的,所以不是Array类型的。 验证: function testargs(){ var arr=[1,2,3]; console.log(typeof arguments.slice); conso ...
分类:
编程语言 时间:
2021-02-16 12:13:02
阅读次数:
0
Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping intervals ...
分类:
其他好文 时间:
2021-02-16 12:04:54
阅读次数:
0
参考:https://www.unknowncheats.me/forum/red-dead-redemption-2-a/386858-ct-trader-role.html CE搜索数据类型设置为"Array of byte",勾选"Hex",然后搜索以下内容: ?? 00 00 00 00 0 ...
分类:
其他好文 时间:
2021-02-16 11:57:34
阅读次数:
0
119. 杨辉三角 II 给定一个非负索引 k,其中 k ≤ 33,返回杨辉三角的第 k 行。 在杨辉三角中,每个数是它左上方和右上方的数的和。 示例: 输入: 3 输出: [1,3,3,1] class Solution { public List<Integer> getRow(int rowI ...
分类:
其他好文 时间:
2021-02-16 11:50:12
阅读次数:
0
有时候需要把PHP的数组倒序一下,PHP很方便,一个函数搞定。
array_reverse()函数
$a=array(1,2,4,5,6);
print_r(array_reverse($a));
结果:Array ( [0] => 6
[1] => 5
[2] => 4
[3] => 2
... ...
分类:
编程语言 时间:
2021-02-15 12:23:46
阅读次数:
0
题目大意:给你一个序列,让你提取出一个子序列A,剩余的部分组成子序列B,现定义seg(x)表示把序列x中相邻的相同数合并成一个数后,序列x的长度,分别求seg(A)+seg(B)的最大值和最小值,n=1e5 考场上并没有想出最小值做法,只会最大值的贪心,下考才知道可以DP做?? 最大值的贪心: 维护 ...
分类:
其他好文 时间:
2021-02-15 12:14:12
阅读次数:
0
The testing code for LX COG 12864R1. You can search the product in T-A-O-B-A-O. #define CS 2 #define RST 3 #define DC 4 #define SCL 21 #define SDA 20 ...
分类:
其他好文 时间:
2021-02-15 12:05:36
阅读次数:
0
public class NIOFileChannel01 { public static void main(String[] args) throws Exception { String str = "hello,帅锅"; //创建一个输出流->channel FileOutputStream ...
分类:
Web程序 时间:
2021-02-15 12:01:12
阅读次数:
0
今天主要是帮家里干活,做过年的准备,学习的知识不多。 package com.chapter01.hanshu object Demo03 { def main(args: Array[String]): Unit = { println(sum(10, 20, 3, 5, 7, 9)) } def ...
分类:
其他好文 时间:
2021-02-15 12:00:55
阅读次数:
0