一维数组的动态和 自己的解法 public static int[] runningSum(int[] nums) { int[] resArr = new int[nums.length]; int temp = 0; for (int i = 0; i < nums.length; i++) { ...
分类:
其他好文 时间:
2021-03-05 13:05:12
阅读次数:
0
除自身以外数组的乘积 题目: 给你一个长度为 n 的整数数组 nums,其中 n > 1,返回输出数组 output ,其中 output[i] 等于 nums 中除 nums[i] 之外其余各元素的乘积。 示例: 输入: [1,2,3,4] 输出: [24,12,8,6] 提示:题目数据保证数组之 ...
分类:
编程语言 时间:
2021-03-04 13:33:58
阅读次数:
0
查看本机的磁盘: [root@jojo ~]# fdisk -l Disk /dev/vda: 42.9 GB, 42949672960 bytes, 83886080 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logic ...
分类:
系统相关 时间:
2021-03-04 13:25:41
阅读次数:
0
1. string 1. 格式化填充 string str = "this {0} a {1}"; Console.WriteLine(string.Format(str, "is", "boy")); // this is a boy 2. 将数据合并成字符串 string[] strArr = ...
方法一:先按照长度排序再按照ASCII码排序 select display_name from desktop order by display_name desc, length(display_name) desc; 方法二:向前/左用空格补齐32位后再排序 select display_nam ...
分类:
数据库 时间:
2021-03-02 12:41:10
阅读次数:
0
[Git]基本操作 Git的结构 workspace:工作区 staging area:暂存区/缓存区 local repository:版本库或本地仓库 remote repository:远程仓库 基本命令 参考:https://www.cnblogs.com/convict/p/1079532 ...
分类:
其他好文 时间:
2021-03-02 11:45:58
阅读次数:
0
description: There are two strings \(a\), \(b\) with the length \(n\), and \(m\). Find the Array <\(p_1, p_2, ..., p_m>\), such that \(a_{p_i}= b_i\), ...
分类:
其他好文 时间:
2021-03-01 13:26:32
阅读次数:
0
增强for循环 格式: for(声明语句:表达式){ //代码 } /** * @author Administrator * @create 2021/2/27 22:46 */ public class Demo05 { public static void main(String[] args ...
分类:
其他好文 时间:
2021-03-01 13:19:47
阅读次数:
0
protoc 编译工具 windows 平台下载对应平台的 protobuf,并配置环境变量 protobuf linux 环境先安装依赖 sudo apt-get install autoconf automake libtool curl make g++ unzip git clone htt ...
分类:
其他好文 时间:
2021-02-27 13:31:02
阅读次数:
0
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> ii; typedef vector<int> vi; typedef vector<ii> vii; typedef ...
分类:
编程语言 时间:
2021-02-27 13:27:43
阅读次数:
0