首页 > 2017年02月12日 > 全部分享
半数集问题与动态规划
首先给出如下的半数集问题 给定一个自然数n,由n 开始可以依次产生半数集set(n)中的数如下。 (1) n∈set(n); (2) 在n 的左边加上一个自然数,但该自然数不能超过最近添加的数的一半; (3) 按此规则进行处理,直到不能再添加自然数为止。 例如,set(6)={6,16,26,126 ...
分类:其他   时间:2017-02-12 19:49:09    收藏:0  评论:0  赞:0  阅读:314
gethub n02
i ...
分类:其他   时间:2017-02-12 19:48:29    收藏:0  评论:0  赞:0  阅读:883
摇一摇
// 实现摇一摇的两种方式 // 1、使用加速计获取加速度数据,自定义一个范围,超过该范围就判定为产生摇动事件 // 2、使用系统封装好的摇动事件 import UIKit class ViewController: UIViewController { override func viewDidL... ...
分类:其他   时间:2017-02-12 19:47:59    收藏:0  评论:0  赞:0  阅读:216
寒假的Java学习笔记总结2
异常处理 1.异常处理语法 try {要检查的程序语句;} catch( Exception e)(注:异常类 对象名称 常用Exception e) {异常发生时的吃力语句;} finally {一定会执行到的程序代码;} 应用代码: public class Java0 { public sta ...
分类:编程语言   时间:2017-02-12 19:47:40    收藏:0  评论:0  赞:0  阅读:188
浏览器兼容性随笔
1、用ie8时强制用ie8解析,需要加下面的话,这句话会强制ie8浏览器按照ie8的 <meta http-equiv="X-UA-Compatible" content="IE=8"> 2、ie8 如何防止console没有定义,加下面的代码 3、如何获取浏览器的版本 ...
分类:其他   时间:2017-02-12 19:47:09    收藏:0  评论:0  赞:0  阅读:181
【database】oracle集合 - Associative Arrays、Varrays、Nested Tables
前言 参考oracle官方文档:PL/SQL Language Reference 11g Release 2 - 5 PL/SQL Collections and Records 可以去看下文档中写的 - 各个集合的适用场景:Appropriate Uses for Associative Arr ...
分类:数据库技术   时间:2017-02-12 19:46:52    收藏:0  评论:0  赞:0  阅读:389
Laravel生命周期
一旦用户(浏览器)发送了一个HTTP请求,我们的apache或者nginx一般都转到index.php,因此,之后的一系列步骤都是从index.php开始的,我们先来看一看这个文件代码。 作者在注释里谈了$kernel的作用,$kernel处理来访的请求,并且发送相应返回给用户浏览器。 这里又涉及到 ...
分类:其他   时间:2017-02-12 19:46:35    收藏:0  评论:0  赞:0  阅读:254
ngix 创建新的网站
1. 进入ngix 的目录的conf 目录 的 vhosts 2. 复制一份新的v2.edc.com.conf 3. server_name : v2.edc.com root : /ali/...../目录 4. 重启nginx 服务 │ /etc/init.d/nginx start|stop| ...
分类:Web开发   时间:2017-02-12 19:05:33    收藏:0  评论:0  赞:0  阅读:223
距离传感器
// 近距离传感器的实现封装在UIKit中 // 需要使用真机测试 import UIKit enum YSSession:Int { case audio = 1 // 音频 case video = 2 // 视频 } class ViewController: UIViewController... ...
分类:其他   时间:2017-02-12 19:05:13    收藏:0  评论:0  赞:0  阅读:269
Number of Segments in a String
Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters. Please note that the string ...
分类:其他   时间:2017-02-12 19:04:58    收藏:0  评论:0  赞:0  阅读:201
perl学习(二)正则表达式
模式分组: /fred+/会匹配freddd这样的 /(fred)+/会匹配fredfredfred这样的 /(fred)*/则会匹配abcdef任意的 圆括号同时也使得重新使用某些字符串成为可能。反向引用来引用圆括号中的模式所匹配的文字,这个行为我们称为捕获组。 反向行为的写法是在反斜线后面接上数... ...
分类:其他   时间:2017-02-12 19:04:38    收藏:0  评论:0  赞:0  阅读:208
sublimecondeintel 分号后不要提示
https://github.com/SublimeCodeIntel/SublimeCodeIntel/issues/461 Thanks to @catgsmith ,I find a similar way to solve this problem in Windows:Select Pac ...
分类:其他   时间:2017-02-12 19:03:53    收藏:0  评论:0  赞:0  阅读:521
Android截图<包括Alertdiaog>
1.使用的系统内部的截屏方法…… 2. ...
分类:移动平台   时间:2017-02-12 19:03:30    收藏:0  评论:0  赞:0  阅读:450
使用 NVM 管理不同的 Node.js 版本
欢迎您帮忙纠错, 一起帮助更多的人。 一起来学习交流React, QQ群:413381701 前言 之前用 npm 安装过 nvm,就以为安装成功了,但运行 nvm 就报如下提示: This is not the package you are looking for: please go to h ...
分类:Web开发   时间:2017-02-12 19:03:19    收藏:0  评论:0  赞:0  阅读:1162
Visual Studio Code 常用插件
这里记录在Visual Studio Code中,我经常用到的插件。C#Markdown Theme Kitvscode-icons ...
分类:其他   时间:2017-02-12 19:03:05    收藏:0  评论:0  赞:0  阅读:309
【65】91. Decode Ways
91. Decode Ways 91. Decode Ways Description Submission Solutions Add to List Total Accepted: 104110 Total Submissions: 548557 Difficulty: Medium Contr ...
分类:其他   时间:2017-02-12 19:02:52    收藏:0  评论:0  赞:0  阅读:184
TYVJ1860 后缀数组
就是模板而已。 然而最后两个点倍增TLE,听说非要DC3算法才能过? ...
分类:编程语言   时间:2017-02-12 19:02:31    收藏:0  评论:0  赞:0  阅读:194
Leetcode 35. Search Insert Position
一、题目要求 Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserte ...
分类:其他   时间:2017-02-12 19:02:15    收藏:0  评论:0  赞:0  阅读:167
三年以上php开发经验常见面试题
一般有三年以上php开发经验去百度、腾讯面试,常会接触的面试题小总结一下: 0.简单做一下自我介绍,? 然后谈一下近三年来你的得意之作? 1.面试官看过你的简历,会问一些你做的项目的用户量、pv、吞吐量、相关难点和解决方法等 2.数据库设计经验,为什么进行分表? 分库? 一般多少数据量开始分表? 分 ...
分类:Web开发   时间:2017-02-12 19:01:58    收藏:0  评论:0  赞:0  阅读:272
IO异常 的处理
import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import javax.management.RuntimeError... ...
分类:其他   时间:2017-02-12 19:01:42    收藏:0  评论:0  赞:0  阅读:247
1083条   上一页 1 ... 15 16 17 18 19 ... 55 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!