码迷,mamicode.com
首页 >  
搜索关键字:comare version number    ( 48018个结果)
Json Schema用法简介
1. 引言 什么是Json Schema? 以一个例子来说明 假设有一个web api,接受一个json请求,返回某个用户在某个城市关系最近的若干个好友。一个请求的例子如下: { "city" : "chicago", "number": 20, "user" : { "name":"Alex", ...
分类:Web程序   时间:2020-06-24 12:10:05    阅读次数:53
复杂度
什么是算法? 算法是用于解决特定问题的一系列的执行步骤; 使用不同的算法,解决同一个问题,效率可能相差很大; 比如:求第 n 个斐波那契数 (fibonacci number) // 方法1 public static int fib1(int n) { if (n <= 1) { return 1 ...
分类:其他好文   时间:2020-06-24 10:36:14    阅读次数:50
191. Number of 1 Bits
fun hammingWeight(n: Int): Int { /** * 以下是完整的位运算符(只用语Int和Long) shl(bits) – 有符号左移(signed shift left,相当于Java的<<) shr(bits) – 有符号右移(signed shift right,相当 ...
分类:其他好文   时间:2020-06-24 00:47:49    阅读次数:65
配置文件读取(2-2)读取yml
基本模块 yml内容 %YAML:1.0 ImagePath:"data/image/image0" CornerPath:"data/corners.txt" MapPath:"data/xml/" static int parseCmdArgs(int argc, char** argv) // ...
分类:其他好文   时间:2020-06-24 00:38:36    阅读次数:59
thinkphp5.1 创建定时任务
1.在application目录下创建crontab模块(统一存放定时任务) 2.在command目录下创建Task.php 代码如下: <?php namespace app\crontab\command; use think\console\Command; use think\console ...
分类:Web程序   时间:2020-06-24 00:26:08    阅读次数:315
opcode配置说明
; opcache的开关,关闭时代码不再优化. opcache.enable=1 ; Determines if Zend OPCache is enabled for the CLI version of PHP opcache.enable_cli=1 ; OPcache的共享内存大小,以兆字节 ...
分类:其他好文   时间:2020-06-24 00:13:42    阅读次数:68
268. Missing Number
package LeetCode_268 /** * 268. Missing Number * https://leetcode.com/problems/missing-number/description/ * * Given an array containing n distinct nu ...
分类:其他好文   时间:2020-06-24 00:06:34    阅读次数:63
CentOS 安装 JDK8 详细步骤
均为 root 账户操作 检查系统中的jdk版本 java -version 没有的话直接下一步 有就卸载 查询自带的openjdk rpm -qa | grep -i java 没有的话直接跳过下一步 有就卸载 检查系统环境 uname -a //i686表示32位 x86_64表示是64位 下载 ...
分类:其他好文   时间:2020-06-23 22:56:17    阅读次数:236
CodeForces -337A:Puzzles(水)
The end of the school year is near and Ms. Manana, the teacher, will soon have to say goodbye to a yet another class. She decided to prepare a goodbye ...
分类:其他好文   时间:2020-06-23 21:45:00    阅读次数:111
Codeforce 318A - Even Odds(数学水题)
Being a nonconformist, Volodya is displeased with the current state of things, particularly with the order of natural numbers (natural number is posit ...
分类:其他好文   时间:2020-06-23 21:22:33    阅读次数:63
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!