码迷,mamicode.com
首页 >  
搜索关键字:any    ( 7409个结果
用十年自学编程(转)
Teach Yourself Programming in Ten Years Peter Norvig Why is everyone in such a rush? Walk into any bookstore, and you'll see how to Teach Yourself Jav ...
分类:其他好文   时间:2016-11-03 13:36:02    阅读次数:449
LeetCode 202 Happy Number
Problem: Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any positi ...
分类:移动开发   时间:2016-11-03 09:51:54    阅读次数:261
LeetCode 326 Power of Three
Problem: Given an integer, write a function to determine if it is a power of three. Could you do it without using any loop / recursion? Summary: 用非循环/ ...
分类:其他好文   时间:2016-11-02 10:21:48    阅读次数:247
模板方法模式
模板方法模式 模板方法模式:定义一个算法中的操作框架,而将一些步骤延迟到子类中。使得子类可以不改变算法的结构即可重定义该算法的某些特定步骤。(Define the skeleton of an algorithm in an operation, deferring some steps to su ...
分类:其他好文   时间:2016-11-02 00:31:23    阅读次数:351
leetcode 117 Populating Next Right Pointers in Each Node II ----- java
Follow up for problem "Populating Next Right Pointers in Each Node". What if the given tree could be any binary tree? Would your previous solution sti ...
分类:编程语言   时间:2016-11-01 23:51:52    阅读次数:272
IKEv2 配置
一、环境搭建 基本配置:配IP、配路由 二、IKEv2 配置 1. 第一阶段策略配置 //第一阶段策略类似于IPsec第一阶段配置 R1配置: R1(config)# crypto ikev2 proposal tech //多个proposal可组成一个policy,tech是proposal名R ...
分类:其他好文   时间:2016-11-01 16:40:39    阅读次数:996
Java实现Excel的操作
JAVA EXCEL API: 开源项目,通过它Java开发人员可以读取Excel文件的内容、创建新的Excel文件、更新已经存在的Excel文件。使用该API非Windows操作系统也可以通过纯Java应用来处理Excel数据表。因为它是使用Java编写的,所以我们在Web应用中可以通过JSP、S ...
分类:编程语言   时间:2016-11-01 14:13:31    阅读次数:213
学习PYTHON之路, DAY 4 - PYTHON 基础 4 (内置函数)
注:查看详细请看https://docs.python.org/3/library/functions.html#next 一 all(), any() False: 0, Noe, '', [], {}, () all() 全部为真是, 才为真 any() 任何一个为真, 都为真 二 bin(), ...
分类:编程语言   时间:2016-10-31 16:24:47    阅读次数:232
122. Best Time to Buy and Sell Stock II
Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple ...
分类:其他好文   时间:2016-10-31 07:28:12    阅读次数:178
好!recover-binary-search-tree(难)& 两种好的空间O(n)解法 & 空间O(1)解法
下面我之前的解法,也很好,通过两个数字来记录可能的出错位置,并且在遍历的同时,更新这个位置。需要对出错的规律有深刻了解,比如在解法中,first_result位置就始终没有变过,因为一旦找到就可以不变,通过second_result位置的改变,就能满足条件: ...
分类:其他好文   时间:2016-10-30 19:22:39    阅读次数:213
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!