Jump Game II Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represen ...
分类:
其他好文 时间:
2016-05-20 13:12:38
阅读次数:
151
Linked List Cycle Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? ...
分类:
其他好文 时间:
2016-05-20 13:14:56
阅读次数:
154
基于浏览器的三维地图还算是一个比较高冷的东西,最主要的技术难点是如何在浏览器上 多快好省 的显示三维数据,很遗憾,还真的没有太好的的方案,只能说还有可行的方案。 很久之前用过skyline,使用CS居多,也可以在浏览器使用actviex插件显示;另外就是arcgis globe,我没看到在项目中用的 ...
分类:
其他好文 时间:
2016-05-20 13:12:39
阅读次数:
205
首先需要分析业务,提取项目需要的概念模型,将其用代码表示。 基本类型,枚举类型,复杂类型,以及它们之间的关系,继承,聚合,组合等方式。 枚举类型在Entity Framework 6 中已支持,可直接定义使用 复杂类型可在 使用[ComplexType] 标注在类上,也可在 FluentAPI 定义 ...
分类:
其他好文 时间:
2016-05-20 13:14:42
阅读次数:
153
Merge Sorted Array Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: You may assume that nums1 has en ...
分类:
其他好文 时间:
2016-05-20 13:13:13
阅读次数:
176
Longest Substring Without Repeating Characters Given a string, find the length of the longest substring without repeating characters. Examples: Given ...
分类:
其他好文 时间:
2016-05-20 13:13:59
阅读次数:
130
This annotation adds information that would be available from a schema type, but isn't implied by a Java class declaration. The annotation has several ...
分类:
其他好文 时间:
2016-05-20 13:11:59
阅读次数:
105
在学习jQuery的过程中我们肯定会碰到这样一个问题,那就是事件冒泡,那么,何为事件冒泡呢? 事件冒泡通俗点讲就是,当你的子元素和父元素注册了同一个事件的时候,当你激活子元素的时候,父元素也会跟着被激活, 显然,这并不是我们所需要的结果!所以我们就要想办法取消事件冒泡 具体实例如下 在这里我的大di ...
分类:
其他好文 时间:
2016-05-20 13:12:55
阅读次数:
203
描述 http://www.spoj.com/problems/COT/ 给出一棵n个节点的树,树上每一个节点有权值.m次询问,求书上u,v路径中第k小的权值. 分析 POJ_2104_Kth(主席树) 现在是把原来的问题搬到树上去了.首先我们肯定要求lca,新学了Tarjan的离线算法. 每一个点 ...
分类:
其他好文 时间:
2016-05-20 13:12:46
阅读次数:
290
说实话,如果古希腊的西西弗斯是一个在2016年编写开源代码的开发者,那他会有宾至如归的感觉。著名的西西弗斯处罚,是神话流传下来的,他被迫推一块巨大的石头上山,当登顶之后,只能眼睁睁看着它滚下去,周而复始直到永远。悄无声息的,全球的开发者在过去的几年里,也在接受类似的处罚。而且巨石还在不断变大。美国国 ...
分类:
其他好文 时间:
2016-05-20 13:10:59
阅读次数:
139
Remove Duplicates from Sorted Array II Follow up for "Remove Duplicates": What if duplicates are allowed at most twice? For example, Given sorted arra ...
分类:
其他好文 时间:
2016-05-20 13:08:19
阅读次数:
160
我今天也是第一次接触服务引用,要跟同事测试webservice,先前说的是在web.config中配置服务地址,然后在需要用到的地方获取配置文件中的地址,进行调用就行。 这次是直接添加了服务引用,服务引用添加成功之后,会在配置文件中生成相应的代码。 在需要用的到的地方,添加using 引用。然后再实 ...
分类:
其他好文 时间:
2016-05-20 13:08:44
阅读次数:
180
Masonry简介 Masonry是一个轻量级的布局框架,它拥有自己的描述语法(采用更优雅的链式语法封装)来自动布局,具有很好可读性且同时支持iOS和Max OS X等。总之,对于侧重写代码的coder,请你慢慢忘记Frame,喜欢Masonry吧 使用前的准备 若是你对于自动布局很熟练的话,再接触 ...
分类:
其他好文 时间:
2016-05-20 13:07:34
阅读次数:
363
Rotate List Given a list, rotate the list to the right by k places, where k is non-negative. For example: Given 1->2->3->4->5->NULL and k = 2, return ...
分类:
其他好文 时间:
2016-05-20 13:09:26
阅读次数:
132
1,单个效果图: 代码: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="Generator" content="EditPlus®"> <meta name="Author" content="" ...
分类:
其他好文 时间:
2016-05-20 13:06:12
阅读次数:
141
Majority Element II Given an integer array of size n, find all elements that appear more than ? n/3 ? times. The algorithm should run in linear time a ...
分类:
其他好文 时间:
2016-05-20 13:07:19
阅读次数:
182
在经过一段时间的使用后,发现在项目中很多地方需要用到用户验证,以短信验证和邮箱验证为主流趋势,小麦总结了如果在Laravel框架中实现发送邮件功能,以后会陆续更上如何实现短信验证..... 在.env文件下 1.配置Laravel文件 MAIL_DRIVER=smtp //建议使用smtp方式 MA ...
分类:
其他好文 时间:
2016-05-20 13:05:51
阅读次数:
151