"题目" 方法一:求0到n的和,再减去nums数组的和,但是可能会超int 方法二:求0到n的异或值,在异或nums数组里的每个数字,不超int ...
分类:
其他好文 时间:
2020-04-18 11:43:38
阅读次数:
50
Android su源代码在AOSP中的位置是/system/extras/su /* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (t ...
分类:
移动开发 时间:
2020-04-18 10:17:50
阅读次数:
103
在pom中添加 <dependency> <groupId>com.xl</groupId> <artifactId>demo</artifactId> <version>1.60</version> <scope>system</scope> <systemPath>jar包的路径</system ...
分类:
编程语言 时间:
2020-04-18 10:13:29
阅读次数:
106
Problem : You are given n pairs of numbers. In every pair, the first number is always smaller than the second number. Now, we define a pair (c, d) can ...
分类:
其他好文 时间:
2020-04-18 10:09:19
阅读次数:
67
认识箭头函数 var fun1 = function(a:number, b:number=2):number{ return a+b; } function fun2(a:number, b:number):number { return a+b; } //使用ES6箭头函数语法定义函数,将原函数 ...
分类:
其他好文 时间:
2020-04-18 10:08:56
阅读次数:
70
一、安装 使用 Homebrew 安装,会自动将Docker添加到应用程序中 brew cask install docker 二、运行 从应用中找到 Docker 图标并点击运行,通过命令查看Docker版本 $ docker --version Docker version 19.03.1, b ...
分类:
系统相关 时间:
2020-04-18 09:35:58
阅读次数:
64
cat cat 是查看文本中所有数据的命令。 [root@linux-node1 ~]# cat anaconda-ks.cfg #version=DEVEL # System authorization information auth --enableshadow --passalgo=sha5 ...
分类:
其他好文 时间:
2020-04-17 23:58:00
阅读次数:
141
问题背景: 在做Struts2学习的页面访问时,配置了如下的两个<action>返回结果视图: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD St ...
分类:
移动开发 时间:
2020-04-17 23:31:14
阅读次数:
90
Leetcode 1254. Number of Closed Islands Given a 2D grid consists of 0s (land) and 1s (water). An island is a maximal 4 directionally connected group o ...
分类:
其他好文 时间:
2020-04-17 22:04:59
阅读次数:
63