Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: Input:nums = ...
分类:
其他好文 时间:
2018-01-13 20:51:43
阅读次数:
142
http://jspang.com/2017/04/13/vue-router/ 原文网址 我们上节课初步了解Vue-router的初步知识,也学会了基本的跳转,那我们这节课学习一下子菜单的路由方式,也叫子路由。子路由的情况一般用在一个页面有他的基础模版,然后它下面的页面都隶属于这个模版,只是部分改 ...
分类:
其他好文 时间:
2018-01-13 20:51:22
阅读次数:
186
1、添加Nuget Package 2、修改Startup.cs 3、从Profile派生一个自定义的映射配置类 4、在代码中调用映射对象 ...
分类:
移动开发 时间:
2018-01-13 20:42:27
阅读次数:
191
There are a total of n courses you have to take, labeled from 0 to n - 1. Some courses may have prerequisites, for example to take course 0 you have t ...
分类:
其他好文 时间:
2018-01-13 20:41:32
阅读次数:
139
1 . 给一个连字符串例如:get element by id转化成驼峰形式。 2 . 匹配二进制数字 3 . 非零的十进制数字 (有至少一位数字, 但是不能以0开头) ...
分类:
Web程序 时间:
2018-01-13 19:04:19
阅读次数:
322
题意:求n和m之间的全部数的素因子个数的最大gcd值。 分析:这题好恶心。看着就是一颗线段树。但本题有一定的规律,我也是后来才发现,我还没推出这个规律。就不说了,就用纯线段树解答吧。由于个点数都小于1000000所以素因子个数不会超过7个所以建一个线段树,最以下一层是每一个节点的素因子个数为1,2。 ...
分类:
其他好文 时间:
2018-01-13 18:55:26
阅读次数:
163
Shader "Custom/LightMap" { Properties { _Color("Base Color", Color) = (1,1,1,1) _MainTex("Base(RGB)", 2D) = "white" {} _LightMap("LightMap", 2D) = "wh... ...
分类:
其他好文 时间:
2018-01-13 18:53:16
阅读次数:
177
背景: PHP产生公告 ,发送到CGI ,在CGI把该公告的json 字符串写入到文件内(转义后的字符串) 通过 jsoncpp 操作 今天来到公司终于搞定了 mark一下 收到的字符串内容: {\"Notice\":{\"NoticeVersion\":\"1414\",\"noticeConte ...
分类:
Web程序 时间:
2018-01-13 18:49:12
阅读次数:
218
function webPic_upload($savepath,$url_data){$mark=ture; $pic_url=''; if(is_array($url_data)){ foreach ($url_data as $k => $v) { $url=$v; preg_match('/ ...
分类:
Web程序 时间:
2018-01-13 18:46:43
阅读次数:
132