说明:本文将用于收集操作系统相关的设计理念与思想,用于学习优秀的设计模式,以便之后优秀架构的系统设计做基础; unix哲学:keep simple, keep stupid ...
分类:
其他好文 时间:
2020-07-13 11:59:06
阅读次数:
63
Reverse Bits Reverse bits of a given 32 bits unsigned integer. Example 1: Input: 00000010100101000001111010011100 Output: 0011100101111000001010010100 ...
分类:
其他好文 时间:
2020-07-13 11:35:53
阅读次数:
58
Given an array of integers nums. A pair (i,j) is called good if nums[i] == nums[j] and i < j. Return the number of good pairs. Example 1: Input: nums ...
分类:
其他好文 时间:
2020-07-13 09:59:42
阅读次数:
75
Given an array of integers nums. A pair (i,j) is called good if nums[i] == nums[j] and i < j. Return the number of good pairs. Example 1: Input: nums ...
分类:
其他好文 时间:
2020-07-13 09:57:03
阅读次数:
63
Reverse Bits (E) 题目 Reverse bits of a given 32 bits unsigned integer. Example 1: Input: 00000010100101000001111010011100 Output: 001110010111100000101 ...
分类:
其他好文 时间:
2020-07-13 09:14:55
阅读次数:
56
在进行深度学习张量计算时,经常要获取张量在某个维度的最大值和最小值,以及这些值的位置。如果只需要知道位置,则torch.argmax和torch.argmin函数便可以实现。 Torch.argmax(input, dim=None, keepdim=False):返回指定维度最大值的序号。 有时候 ...
分类:
其他好文 时间:
2020-07-12 20:51:13
阅读次数:
65
场景 Node的Web应用框架Express的简介与搭建HelloWorld: https://mp.csdn.net/console/editor/html/106650798 Express的基本路由实现对get和post等的请求和响应: https://blog.csdn.net/BADAO_ ...
分类:
Web程序 时间:
2020-07-12 20:34:25
阅读次数:
79
Introduction An Example : FileReader // read the file to console @Test public void test2(){ FileReader fr = null; try { // step 1 : new the file File ...
分类:
编程语言 时间:
2020-07-12 19:06:13
阅读次数:
61
You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number ...
分类:
其他好文 时间:
2020-07-12 18:48:43
阅读次数:
50
一、通过homebrew查看是否有异常(首先你得安装了Homebrew) $ brew doctor 二、根据提示修改zsh配置 Warning: Homebrew's sbin was not found in your PATH but you have installed formulae t ...
分类:
其他好文 时间:
2020-07-12 18:34:10
阅读次数:
134