简介 better-scroll 是一个移动端滚动的解决方案,它是基于 iscroll 的重写,它和 iscroll 的主要区别在这里。better-scroll 也很强大,不仅可以做普通的滚动列表,还可以做轮播图、picker 等等。 安装 ### 使用 npm 或者 yarn npm insta ...
分类:
其他好文 时间:
2020-03-01 23:25:11
阅读次数:
137
Array LeetCode Given an integer array of size n, find all elements that appear more than ? n/3 ? times. The algorithm should run in linear time and i.... ...
分类:
其他好文 时间:
2020-03-01 14:18:51
阅读次数:
71
<?xml version='1.0' encoding='utf-8'?><!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the ...
分类:
其他好文 时间:
2020-03-01 10:52:42
阅读次数:
67
题目描述 数组中有一个数字出现的次数超过数组长度的一半,请找出这个数字。例如输入一个长度为9的数组{1,2,3,2,2,2,5,4,2}。由于数字2在数组中出现了5次,超过数组长度的一半,因此输出2。如果不存在则输出0。 三种解法: 1. 用map将number和出现次数存起来。 时间复杂度O(n) ...
分类:
编程语言 时间:
2020-03-01 00:27:54
阅读次数:
62
write less do more 核心:操作dom(通过面向对象) jq是一种链式操作 。 $可以拿到dom元素 $(document).ready(function() { 页面加载好执行 }) //等同于 $(function() { 页面加载好执行 }) $(document).ready ...
分类:
Web程序 时间:
2020-02-29 23:57:44
阅读次数:
116
108. Convert Sorted Array to Binary Search Given an array where elements are sorted in ascending order, convert it to a height balanced BST. For this ...
分类:
编程语言 时间:
2020-02-29 22:03:51
阅读次数:
78
这几天研究了用hugo搭建个人博客。 简单的整理了一下。 1.安装hugo(windows 请查看官网介绍 https://gohugo.io/getting started/installing/) $ brew install hugo 之后检查版本 2.创建hugo 项目 $ hugo new ...
分类:
其他好文 时间:
2020-02-29 14:45:13
阅读次数:
77
kernel文件结构,makefile与kconfig机制分析kernelmakefilekbuild一、目录结构二、配置x210ii_qt_defconfigmenuconfig三、Kconfig文件格式关系 以下分析均来自于kernel 2.6.35.7版本 一、目录结构NameDescript... ...
分类:
其他好文 时间:
2020-02-28 22:18:13
阅读次数:
70
1.划分 函数partition用于将数组分为两段,一段返回小于基准值,一段大于基准值。并且基准值到达它应该在的位置。返回基准值的下标。 代码: 找到数组中个数超过一半的数 思路1: 既然这个数的个数超过总个数的一半,那么如果把数组排序,在中间的那个数,必定是所要找的数。所以把问题转化为找n/2大的 ...
分类:
编程语言 时间:
2020-02-28 21:00:59
阅读次数:
73
病毒现象 服务器出现卡顿、CPU飙升 以下为WatchDogs的判断方式及其命令:存在恶意进程watchdogs: ps -ef | grep watchdogs存在恶意进程ksoftirqds: ps -ef | grep ksoftirqds存在恶意启动项watchdogs: chkconfig ...
分类:
其他好文 时间:
2020-02-28 19:06:10
阅读次数:
108