修改主机名hostname与root@后面主机名显示 centos7.5 之前 修改 hostname 命令显示的主机名 [root@two huan_yang] vim /etc/hostname two.kong.com [root@two huan_yang] systemctl restar ...
分类:
其他好文 时间:
2020-05-14 12:53:03
阅读次数:
59
Share Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements that appe ...
分类:
其他好文 时间:
2020-05-14 11:11:27
阅读次数:
60
[toc] 分而治之 D&C(divide and conquer )是一种著名的递归式问题解决方法。 D&C的工作原理 找出简单的基线条件; 确定如何缩小问题的规模,使其符合基线条件。 计算数字数组的和 实现方法1 实现方法2 示意图 快速排序 快速排序是一种常用的排序算法,比选择排序快得多。例如 ...
分类:
编程语言 时间:
2020-05-14 01:56:04
阅读次数:
94
Description Given two sorted integer arrays A and B, merge B into A as one sorted array. You may assume that A has enough space (size that is greater ...
分类:
其他好文 时间:
2020-05-13 12:04:16
阅读次数:
68
You are given a sorted array consisting of only integers where every element appears exactly twice, except for one element which appears exactly once. ...
分类:
其他好文 时间:
2020-05-13 10:07:23
阅读次数:
62
Given a binary tree, return the vertical order traversal of its nodes' values. (ie, from top to bottom, column by column). If two nodes are in the sam ...
分类:
其他好文 时间:
2020-05-13 09:40:41
阅读次数:
65
// Hey buddy you get the wrong door, the leather club is two blocks down. #include <bits/stdc++.h> using namespace std; const int N = 200, INF = 0x3f3 ...
分类:
其他好文 时间:
2020-05-12 20:16:46
阅读次数:
73
Abstract: What do you think about the question? Does the 64 bits always do better? The answer is NO. When we talk about 64 bit vs. 32 bit we mean two ...
分类:
其他好文 时间:
2020-05-12 20:12:53
阅读次数:
84
Dart库引入第三方库懒加载(延时加载)deferred as库分片partTOC Dart库 Dart中的库主要有三种: 1、我们自定义的库 import 'lib/xxx.dart; import '../../part-two/chapter3/enum.dart'; 2、系统内置库 impo... ...
分类:
其他好文 时间:
2020-05-12 18:50:32
阅读次数:
255
题目 Suppose a bank has K windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. All th ...
分类:
其他好文 时间:
2020-05-12 14:14:19
阅读次数:
70