Problem: The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors ...
分类:
编程语言 时间:
2020-10-05 22:34:28
阅读次数:
52
代码库的版本号是从 1 到 n 的整数。某一天,有人提交了错误版本的代码,因此造成自身及之后版本的代码在单元测试中均出错。请找出第一个错误的版本号。 你可以通过 ?isBadVersion? 的接口来判断版本号 version 是否在单元测试中出错,具体接口详情和调用方法请见代码的注释部分。 在线评 ...
分类:
其他好文 时间:
2020-09-24 22:02:30
阅读次数:
46
-bash: nohup: command not found 1、查看本地是否有 which nohup 如果存在记录位置 通常位置为 /usr/bin/nohup 如果没有查询到位置 yum install coreutils 进行安装 然后配置 2、修改profile文件 位置--etc/pr ...
分类:
系统相关 时间:
2020-09-24 21:03:34
阅读次数:
71
Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k num ...
1、线程状态 Thread.State public enum State { /** * Thread state for a thread which has not yet started. */ NEW,(新建) /** * Thread state for a runnable threa ...
分类:
编程语言 时间:
2020-09-18 00:09:42
阅读次数:
28
Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the largest product. Example 1: I ...
分类:
其他好文 时间:
2020-09-18 00:08:22
阅读次数:
27
问题 K: Length of Bundle Rope 时间限制: 2 Sec 内存限制: 1024 MB提交 状态 题目描述 Due to the development of online shopping, the logistics industry which is highly conn ...
分类:
其他好文 时间:
2020-09-17 22:58:33
阅读次数:
44
linux 下面启动nginx 和关闭nginx, 查看linux 开放的所有端口netstat -ntpl,重启服务命令 :service network restart 1 进入到安装的目录里面 whereis nginx 2. 进入该路径:cd /usr/local/nginx/sbin 3 ...
分类:
系统相关 时间:
2020-09-17 12:09:46
阅读次数:
28
问题:创建类或接口时,要添加自定义的默认注释,比如版本,时间等。每个类修改显然不符合程序员的思路,有没有办法通过定义模板来实现? 使用Idea模板 Idea可听过创建类模板来实现。 功能路径:Setting → Editor → File and Code Template → Class 修改,右 ...
分类:
其他好文 时间:
2020-09-17 12:01:08
阅读次数:
32
一、Reading Confucius is respected by most Chinese as the greatest teacher of all time. Perhaps the most important word he taught was "ren," which means ...
分类:
其他好文 时间:
2020-08-31 13:28:53
阅读次数:
75