Given a non empty array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runti ...
分类:
其他好文 时间:
2020-04-06 09:48:06
阅读次数:
63
1.文件搜索命令 1.1 locate 文件名 注意: locate只能接文件名; locate查找的范围是后台数据库:var/lib下,由于db的更新周期是一天,搜索前使用updatedb更新。 locate的查找速率快于find命令。 1.2 find 搜索范围 搜索条件 查找范围:通过必选参数 ...
分类:
系统相关 时间:
2020-04-06 09:35:35
阅读次数:
97
We have a list of points on the plane. Find the K closest points to the origin (0, 0). (Here, the distance between two points on a plane is the Euclid ...
分类:
其他好文 时间:
2020-04-06 09:25:29
阅读次数:
73
Problem : A peak element is an element that is greater than its neighbors. Given an input array nums, where nums[i] ≠ nums[i+1], find a peak element a ...
分类:
其他好文 时间:
2020-04-05 23:55:14
阅读次数:
129
步骤1.获取设备节点 使用of_find_node_by_path获取设备树中的节点信息 步骤2.获取gpio属性 使用of_get_named_gpio获取设备树中gpio的属性信息 步骤3.设置输入输出模式 使用gpio_direction_output设置gpio为输入或输出,以及默认电平 步 ...
分类:
其他好文 时间:
2020-04-05 22:36:28
阅读次数:
103
public void findRepeat(String string){ for (int i=0;i<=string.length()-1;i++){ String temp=string.substring(0,i)+string.substring(i+1); System.out.pri ...
分类:
编程语言 时间:
2020-04-05 20:49:45
阅读次数:
192
1.新建项目 新建vue项目直接通过命令行即可,过程比较简单,具体参照:https://www.jianshu.com/p/02b12c600c7b 需要注意的是,直接在需要生成的目录下用命令行操作即可,不用先新建该项目的文件夹。 2.遇到报错 Error: Cannot find module ' ...
分类:
其他好文 时间:
2020-04-05 20:28:44
阅读次数:
92
Given the root of a binary tree, find the maximum value V for which there exists different nodes A and B where V = |A.val - B.val| and A is an ancesto ...
分类:
其他好文 时间:
2020-04-05 12:01:52
阅读次数:
97
常用UNIX/Linux命令 文件目录类命令 进程控制类命令 用户及权限管理类命令 命令格式 命令格式:命令名称 选项 参数 例: 文件目录类命令 浏览目录命令 : 目录操作命令 : 浏览文件命令 : 文件操作命令 : 浏览目录命令ls、pwd ls&pwd : 目录操作命令cd、mkdir、rmd ...
分类:
系统相关 时间:
2020-04-05 11:56:52
阅读次数:
92
原理:先把命令执行类编码,然后使用自定义类加载器加载命令执行的类,进而调用方法 ...
分类:
系统相关 时间:
2020-04-05 11:30:06
阅读次数:
78