package com.example.leetcode; import java.util.*; /** * @description: 40. 组合总和 II * 给定一个数组 candidates 和一个目标数 target ,找出 candidates 中所有可以使数字和为 target 的 ...
分类:
其他好文 时间:
2021-04-28 12:01:50
阅读次数:
0
一些简单的算法与数据结构 稀疏数组 int chessArr1[][] = new int[11][11];//11*11的数组 int sum = 0; chessArr1[1][2] = 1;//设置两个值 chessArr1[2][3] = 2; //打印原数组 for(int[] row : ...
分类:
编程语言 时间:
2021-04-28 11:46:26
阅读次数:
0
规律:分子不变,分母1、3、5、7、9 每一项越来越小:最后一项的绝对值 < 0.0000001 每一项目是正负交替:* -1 每一项组成:符号、分子、分母 代码如下: import math sum = 0 #和 fh = 1 # 符号 fm = 1 #分母 i = 1 while math.fa ...
分类:
编程语言 时间:
2021-04-28 11:44:52
阅读次数:
0
使用debug模式不对代码加密保护,当使用用Release模式自动对编译成功项目加密保护,这样真的方便不少。 if $(ConfigurationName) == Release goto Release goto Debug:Debugxcopy /y /k "$(TargetPath)" D:\ ...
分类:
Web程序 时间:
2021-04-28 11:40:34
阅读次数:
0
1、for语句 for (i in 1:5) { print("hello world!") } 2、for语句 sum = 0 for (i in 1:100){ sum = sum + i } print(sum) 3、for语句 sum = 0 for (i in 1:100) { if (i ...
分类:
编程语言 时间:
2021-04-27 15:30:33
阅读次数:
0
2021年4月24日17:29:22 环境: php8.0.3 centos 8.3 ./configure \ --prefix=/usr/local/php8 \ --with-config-file-path=/usr/local/php8/etc \ --with-curl \ --with ...
分类:
Web程序 时间:
2021-04-27 15:21:59
阅读次数:
0
方法一:cmd脚本 md 文件名+空格+文件名+空格+文件名 如md 1 2 3 保存为bat 如下图 方法二:python 脚本 如上为单个文件创建成功,既然用到python,肯定是想创建多个,新增如下代码 具体代码如下 import re def mkdir(path): # 引入模块 impo ...
分类:
其他好文 时间:
2021-04-27 15:10:37
阅读次数:
0
import pandas as pd import os import re path = "./files/" files = os.listdir(path) # 用于存放Excel,里面的每个元素类型为:pandas.core.frame.DataFrame list_excel = [] ...
分类:
编程语言 时间:
2021-04-27 14:43:38
阅读次数:
0
安装库 在安装cgminer后,编译openwrt源码报错在安装cgmner是缺失依赖库udev: 解决方式:在openwrt-cgminer\allcode\openwrt\feeds\packages\utils路径下增加eudev文件夹 eudev目录下有一些patches、配置文件以及mak ...
分类:
其他好文 时间:
2021-04-27 14:40:05
阅读次数:
0
1.Datatable、DataRow[]、List 、List子集合、 某列求和 DataTable dt = new DataTable(); var sum1 = dt.Compute("SUM(Volume)", ""); DataRow[] drList = dt.Select("Name ...