去除重复元素: public static ArrayList singleElement(ArrayList al) { //定义一个临时容器 ArrayList newAl = new ArrayList(); Iterator it = al.iterator(); while (it.has ...
分类:
编程语言 时间:
2020-04-05 18:36:34
阅读次数:
64
Description The citizens of Bytetown, AB, could not stand that the candidates in the mayoral election campaign have been placing their electoral poste ...
分类:
其他好文 时间:
2020-04-05 00:52:42
阅读次数:
87
题目传送门 题目描述 NEKO#ΦωΦ has just got a new maze game on her PC! The game's main puzzle is a maze, in the forms of a 2×n2×n rectangle grid. NEKO's task is ...
分类:
其他好文 时间:
2020-04-04 22:34:42
阅读次数:
81
题目如下: Given an array of integers arr, a lucky integer is an integer which has a frequency in the array equal to its value. Return a lucky integer in t ...
分类:
其他好文 时间:
2020-04-04 14:18:51
阅读次数:
71
找到known_hosts文件把里面相应的主机那行删除即可 MAC/Linux vi ~/.ssh/known_hosts Windows C:\Users\用户登陆名\.ssh\known_hosts 报错信息: ? ssh root@mongo.top @@@@@@@@@@@@@@@@@@@@@ ...
分类:
其他好文 时间:
2020-04-04 09:38:24
阅读次数:
68
抽取音频命令ffmpeg -i 3.mp4 -vn -y -acodec copy 3.aacffmpeg -i 3.mp4 -vn -y -acodec copy 3.m4a 提取视频 (Extract Video)ffmpeg -i Life.of.Pi.has.subtitles.mkv -v ...
分类:
其他好文 时间:
2020-04-03 23:53:45
阅读次数:
98
Using .NET Standard with Full Framework .NET .NET Standard has been around long enough now that most people are reasonably familiar with this somewhat ...
分类:
Web程序 时间:
2020-04-03 18:31:21
阅读次数:
84
leetcode 53. Maximum Subarray 链接 "leetcode" 描述 Given an integer array nums, find the contiguous subarray (containing at least one number) which has th ...
分类:
其他好文 时间:
2020-04-03 16:25:10
阅读次数:
60
import logginglogging.basicConfig(level=logging.INFO)'''def check_number_exist(password_str): has_number = False for c in password_str: if c.isnumber( ...
分类:
编程语言 时间:
2020-04-03 13:40:45
阅读次数:
73
主要的问题是我们需要用上一个状态来判断当前状态。因为可能因为你变1之后影响其他的。 Perhaps that’s been the story of life func gameOfLife(board [][]int) { temp := make([][]int, len(board)) for ...
分类:
其他好文 时间:
2020-04-03 00:35:56
阅读次数:
62