码迷,mamicode.com
首页 >  
搜索关键字:length of last word    ( 43804个结果
为什么HashMap的容量是2的幂次方
在jdk1.7中 哈希函数为 static int indexFor(int h,int length){ return h & (length-1); } 理由一:充分利用数组空间 假设长度不是2的幂次方 长度为基数 (假设长度为5) 01010101 01010101 01010101 0101 ...
分类:其他好文   时间:2021-01-07 12:43:34    阅读次数:0
golang 反射
package main import ( "fmt" "reflect" ) type Reflect struct { Name string `json:"name" test:"tag"` PassWord string Three int } func (m Reflect)Hello(v ...
分类:其他好文   时间:2021-01-07 12:35:17    阅读次数:0
HTTP协议
HTTP是什么? HTTP是超文本传输协议 超文本+传输+协议 HTTP常见状态码有哪些? HTTP常见字段有哪些? HOST字段:客户端发送请求时,用来指定服务器的域名 --HOST:www.A.com Content-Length字段:服务器在返回数据时,会有Content-Length字段,表 ...
分类:Web程序   时间:2021-01-07 11:56:46    阅读次数:0
Python3-接口自动化-10-记一次HTMLTestReportCNs.py中float division by zero排查
一、报错内容: Traceback (most recent call last): File "D:\Ddworkspace\workspace\DdScript\dmall-small-program\autoPyWxInterface\run_start_auto.py", line 39, ...
分类:编程语言   时间:2021-01-07 11:44:09    阅读次数:0
base64 转 blob 或 file 格式
// 转 file dataURIToFile(dataURI) { let binStr = atob(dataURI.split(',')[1]) let len = binStr.length let arr = new Uint8Array(len) for (var i = 0; i < ...
分类:其他好文   时间:2021-01-07 11:43:38    阅读次数:0
flask 引入 flask-wtf 做安全表单
环境: python 3.7.4 win 10 模块: flask 1.1.2 Flask-WTF 0.14.3 资料文档: 官网:https://flask-wtf.readthedocs.io/en/stable/ 辅助网站:http://wtforms.simplecodes.com/docs ...
分类:其他好文   时间:2021-01-06 12:35:58    阅读次数:0
Comparable与Comparator (2)
统计单词频率 import java.util.*; public class test { public static void main(String[] args) { final String speech = "It was the best of times, it was the wo ...
分类:其他好文   时间:2021-01-06 12:31:58    阅读次数:0
LeetCode474. 一和零
☆☆☆☆思路:本题是二维的0-1背包问题,把总共的 0 和 1 的个数视为背包的容量 class Solution { public int findMaxForm(String[] strs, int m, int n) { /*int len = strs.length; // dp[i][j] ...
分类:其他好文   时间:2021-01-06 12:30:29    阅读次数:0
原生页面的轮播图
原生页面的基本应用 <!DOCTYPE html><html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <ti ...
分类:其他好文   时间:2021-01-06 12:16:26    阅读次数:0
Leetcode 208 实现 Trie
JAVA 实现: class Trie { private Node head; /** * Initialize your data structure here. */ public Trie() { this.head = new Node(); } /** * Inserts a word ...
分类:其他好文   时间:2021-01-06 12:15:16    阅读次数:0
43804条   上一页 1 ... 56 57 58 59 60 ... 4381 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!