码迷,mamicode.com
首页 > 其他好文
采药 水题 dp 01背包问题 luogu1048
最基本的01背包,不需要太多解释,刚学dp的同学可以参见dd大牛的背包九讲,直接度娘“背包九讲”即可搜到 ...
分类:其他好文   时间:2016-10-24 09:32:38    阅读次数:126
Ugly Number II
Write a program to find the n-th ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 1, 2, 3, 4, 5, ...
分类:其他好文   时间:2016-10-24 09:30:02    阅读次数:160
Objective-C 中 NULL、nil、Nil、NSNull 的定义及不同
来源:XcodeMen(康祖彬) 链接:http://www.jianshu.com/p/5d7033b15052 本文由我们团队的 康祖彬 童鞋撰写,这是他的个人主页:https://kangzubin.cn。 理解”不存在“的概念不仅仅是一个哲学的问题,也是一个实际的问题。我们是有形宇宙的居民, ...
分类:其他好文   时间:2016-10-24 09:31:19    阅读次数:213
最短路(数据处理):HDU 5817 Ice Walls
Have you ever played DOTA? If so, you may know the hero, Invoker. As one of the few intelligence carries, Invoker has 10 powerful abilities. One of th ...
分类:其他好文   时间:2016-10-24 09:28:53    阅读次数:252
413. Arithmetic Slices
我自己的写法觉得有点蠢……先把每个相邻数之间差算出来,然后再走一遍,如果有n(n>=2)连续的相等的数,那么可以组成的组合就是(n-2)+(n-3)+..+1 看了下别人的,其实道理倒是一样的,不过写起来好看多了 ...
分类:其他好文   时间:2016-10-24 09:29:13    阅读次数:148
基于artDialog的扩展
...
分类:其他好文   时间:2016-10-24 09:25:55    阅读次数:145
iphone删除自动更新的系统
1、利用 etc/host 文件屏蔽 Apple 更新服务器用电脑 iTools 或者手机 iFile 打开 etc/host 文件,添加:127.0.0.1 mesu.apple.com到文件中。2、修改 LaunchDaemons 的 OTA 配置文件用 iFile 或者 iTools 等文件管 ...
分类:其他好文   时间:2016-10-24 09:27:52    阅读次数:199
[LeetCode] Valid Word Square 验证单词平方
Given a sequence of words, check whether it forms a valid word square. A sequence of words forms a valid word square if the kth row and column read th ...
分类:其他好文   时间:2016-10-24 07:47:22    阅读次数:330
访问外网 ML2 的配置 - 每天5分钟玩转 OpenStack(103)
本节讨论 Neutron 租户网络与外部网的区别,以及为了访问外网 ML2 中应该如何配置? ...
分类:其他好文   时间:2016-10-24 07:47:50    阅读次数:255
91. Decode Ways
A message containing letters from A-Z is being encoded to numbers using the following mapping: Given an encoded message containing digits, determine t ...
分类:其他好文   时间:2016-10-24 07:47:32    阅读次数:199
375. Guess Number Higher or Lower II
We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time you guess wron ...
分类:其他好文   时间:2016-10-24 07:45:45    阅读次数:285
致龙芯15周年 胡伟武披露龙芯3号开发历程(非常精彩,巨多干货)
近日,龙芯中科宣布3A3000四核处理器芯片完成流片并通过系统测试。根据现有的测试结果,龙芯3A3000达到了预定的设计性能目标。其中,综合计算性能方面,在1.5GHz主频下,GCC编译的SPEC CPU 2006定点和浮点单核分值分别超过11分和10分;访存性能方面,Steam分值超过13GBps ...
分类:其他好文   时间:2016-10-24 07:46:15    阅读次数:262
云盘的分类(5大类,非常全面)
国内的网盘产品,根据服务商的特点,大体上可以分成五类:第一类是互联网公司提供的,如百度云、360云、腾讯云等;第二类电信运营商提供的,如中国电信的天翼云、中国移动的彩云;第三类是传统设备商提供的,如华为云、联想企业网盘等;第四类是面向企业端的互联网企业基于企业信息化服务方案提供的,如三五互联等;第五 ...
分类:其他好文   时间:2016-10-24 07:45:49    阅读次数:304
按键精灵
按键精灵是一款模拟鼠标键盘动作的软件。通过制作脚本,可以让按键精灵代替双手,自动执行一系列鼠标键盘动作。按键精灵简单易用,不需要任何编程知识就可以作出功能强大的脚本。只要在电脑前用双手可以完成的动作,按键精灵都可以替代完成。 ...
分类:其他好文   时间:2016-10-24 07:43:12    阅读次数:156
LeetCode之104. Maximum Depth of Binary Tree
-------------------------------- 递归遍历即可 AC代码: /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNod... ...
分类:其他好文   时间:2016-10-24 07:41:45    阅读次数:161
LeetCode之412. Fizz Buzz
-------------------------------------------- 虽然是从最简单的开始刷起,但木有想到LeetCode上也有这么水的题目啊。。。 AC代码: public class Solution { public List fizzBuzz(int n) { List ... ...
分类:其他好文   时间:2016-10-24 07:42:40    阅读次数:332
LeetCode "Is Subsequence"
There are 3 possible approaches: DP, divide&conquer and greedy. And apparently, DP has O(n^2) complexity, DivideConquer can only be worse. Greedy can ...
分类:其他好文   时间:2016-10-24 07:42:05    阅读次数:234
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!