码迷,mamicode.com
首页 > 全部 > 周排行
基于Trie树实现自动补齐(autocomplete)功能
""" Trie树 """ __author__ = 'youngf' class TrieNode: def __init__(self): self.children = {} self.last = False class Trie: def __init__(self): self.root ...
分类:其他好文   时间:2020-11-25 12:39:23    阅读次数:5
我要进大厂之大数据MapReduce知识点(2)
01 我们一起学大数据 今天老刘分享的是MapReduce知识点的第二部分,在第一部分中基本把MapReduce的工作流程讲述清楚了,现在就是对MapReduce零零散散的知识点进行总结,这次的内容大纲如下图: 02 需要谨记的知识点 第6点:自定义分区 在上篇文章里的第五点提到过这句话:分区用到了 ...
分类:其他好文   时间:2020-11-25 12:39:39    阅读次数:6
java接口
1 package inter; 2 3 public abstract class Door { 4 abstract void openDoor(); 5 abstract void closeDoor(); 6 } 7 8 9 package inter; 10 11 public inter ...
分类:编程语言   时间:2020-11-25 12:40:00    阅读次数:6
经典买票并发
package com.spinlock.spinlock.juc; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; public class Demo3 { publi ...
分类:其他好文   时间:2020-11-25 12:40:31    阅读次数:5
kmp 算法
就是找自串的算法,这里主要是用到了前缀表 比如原始字符串是 a a a a a a b 字串是 a a b 则前缀表是 -1 1 0 第一次比较 a a a a a a b a a b -1 1 0 移动 a a a a a a b a a b -1 1 0 移动 a a a a a a b a a ...
分类:编程语言   时间:2020-11-25 12:40:49    阅读次数:4
九大排序算法(Java实现)
1、冒泡排序 public class Bubble_sort { /** * 公共冒泡排序接口 * @param arr 带排序数组 */ public static void sort(int[] arr) { if (arr == null) return; int len = arr.len ...
分类:编程语言   时间:2020-11-25 12:41:09    阅读次数:6
5,mat 分析
1,将堆信息导入到mat中分析,查看index.html 2,加载后首页如下图,在首页上比较有用的是Histogram和Leak Suspects。 Leak Suspects Report(内存泄露报告) 3, 点击Details进入详情页面。在详情页面Shortest Paths To the ...
分类:其他好文   时间:2020-11-25 12:41:31    阅读次数:4
JavaScript中的类型检查有点麻烦
js 的动态类型有好有坏。好的一面,不必指明变量的类型。不好的是,咱们永远无法确定变量的类型。 typeof运算符可以确定 js 中的6种类型: typeof 10; // => 'number' typeof 'Hello'; // => 'string' typeof false; // => ...
分类:编程语言   时间:2020-11-25 12:41:44    阅读次数:6
git优秀项目
[Modern Java - A Guide to Java 8] [APIJSON] [网关soul] ...
分类:其他好文   时间:2020-11-25 12:42:03    阅读次数:5
AnyCAD C#开发-设置定向视图renderView.Renderer.SetStandardView
//俯视图 renderView.Renderer.SetStandardView(EnumStandardView.SV_Top); renderView.RequestDraw(); //前视图 renderView.Renderer.SetStandardView(EnumStandardVi ...
分类:Windows程序   时间:2020-11-25 12:42:18    阅读次数:15
ES6变量的解构赋值
1.什么是解构? ES6允许按照一定模式,从数组和对象中提取值,对变量进行赋值,这被称为解构。它在语法上比ES5所提供的更加简洁、紧凑、清晰。它不仅能减少你的代码量,还能从根本上改变你的编码方式。 2.数组解构 以前,为变量赋值,我们只能直接指定值,比如 let a = 1; let b = 2; ...
分类:其他好文   时间:2020-11-25 12:42:39    阅读次数:6
Monkey 部署环境
Monkey的介绍 它是Android系统自带一个命令行工具,可以运行在模拟器里或者真是设备中运行。 Monkey是发送伪随机用户事件的工具。 Monkey向系统发送伪随机的用户事件流,实现对正在开发的应用程序进行压力测试。 通过Monkey程序模拟用户触摸屏幕、滑动Trackball、按键等操作来 ...
分类:其他好文   时间:2020-11-25 12:42:55    阅读次数:6
数据库查询语句(DQL)
DQL: 数据库执行DQL语言不会对数据库中的数据发生任何改变,而是让数据库发送查询结果到客户端。 *执行语句不改变表内容 ####where : 使用运算符 =, !=, <, >, ?, >= between...and: 介于...和...之间 and 且 or 或 in /not in # ...
分类:数据库   时间:2020-11-25 12:43:12    阅读次数:10
Java 遍历map的四种方法
public static void main(String[] args) { // 循环遍历Map的4中方法 Map<Integer, Integer> map = new HashMap<Integer, Integer>(); map.put(1, 2); // 1. entrySet遍历, ...
分类:编程语言   时间:2020-11-25 12:43:29    阅读次数:8
LeetCode290-单词规律
非商业,LeetCode链接附上: https://leetcode-cn.com/problems/word-pattern/ 进入正题。 题目: 给定一种规律 pattern 和一个字符串 str ,判断 str 是否遵循相同的规律。 这里的 遵循 指完全匹配,例如, pattern 里的每个字 ...
分类:其他好文   时间:2020-11-25 12:43:50    阅读次数:7
6种JavaScript继承方式及优缺点
友情提示:想要更好的理解js继承方式,须了解构造函数、原型对象、实例化对象、原型链等概念 第一种:原型链继承利用原型链的特点进行继承 function Parent(){ this.name = 'web前端'; this.type = ['js','html','css']; } Parent.p ...
分类:编程语言   时间:2020-11-25 12:44:08    阅读次数:10
include文件包含解析
include文件包含解析 前言 题目环境 buuctf中warmup 知识点include特性 思路 之前写过这题 ...
分类:其他好文   时间:2020-11-25 12:44:25    阅读次数:6
OpenStack新增加一个计算节点
一、增加计算节点需要步骤 1:配置yum源 2:时间同步 3:安装openstack基础包 4:安装nova-compute 5:安装neutron-linuxbridge-agent 6:启动服务nova-compute和linuxbridge-agent 7:验证 二、增加计算节点实战 1. 配 ...
分类:其他好文   时间:2020-11-25 12:44:41    阅读次数:4
RGB全彩LED——树莓派基于C语言教程
1 #include <stdio.h> 2 #include <wiringPi.h> 3 #include <softPwm.h> 4 5 const int Red_Pin = 9; 6 const int Green_Pin = 10; 7 const int Blue_Pin = 11; ...
分类:编程语言   时间:2020-11-25 12:45:11    阅读次数:8
Codeforces 1439B. Graph Subset Problem (思维,复杂度分析)
#include<bits/stdc++.h> #define ll long long #define N 100015 #define rep(i,a,n) for (int i=a;i<=n;i++) #define per(i,a,n) for (int i=n;i>=a;i--) #def ...
分类:其他好文   时间:2020-11-25 12:45:31    阅读次数:4
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!