码迷,mamicode.com
首页 > 其他好文
339. Nested List Weight Sum
Given a nested list of integers, return the sum of all integers in the list weighted by their depth. Each element is either an integer, or a list -- w ...
分类:其他好文   时间:2016-09-22 06:35:53    阅读次数:178
重做53. Maximum Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [-2,1,-3,4,-1,2, ...
分类:其他好文   时间:2016-09-22 06:35:29    阅读次数:125
50. Pow(x, n)
Implement pow(x, n). ...
分类:其他好文   时间:2016-09-22 06:34:39    阅读次数:134
336. Palindrome Pairs
Given a list of unique words. Find all pairs of distinct indices (i, j) in the given list, so that the concatenation of the two words, i.e.words[i] + ...
分类:其他好文   时间:2016-09-22 06:33:21    阅读次数:150
152. Maximum Product Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,-2,4],t ...
分类:其他好文   时间:2016-09-22 06:33:15    阅读次数:193
205. Isomorphic Strings
Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrenc ...
分类:其他好文   时间:2016-09-22 06:32:43    阅读次数:119
来自 Thoughtram 的 Angular 2 系列资料
Angular 2 已经正式 Release 了,Thoughtram 已经发布了一系列的文档,对 Angular 2 的各个方面进行深入的阐释和说明。 我计划逐渐将这个系列翻译出来,以便对大家学习 Angular 2 提供一些方便。 ...
分类:其他好文   时间:2016-09-22 06:33:44    阅读次数:209
2016MBA排名
2016全球商学院100强 2016上半年度最受欢迎的十大MBA排名 2016上半年度最受欢迎的十大MBA排名 2016上半年度最受欢迎的十大MBA排名 网上评选出上年度最受欢迎的十大MBA排名,有你想要报考的院校吗?快来一睹这些MBA院校的风采,选择好适合自己的院校项目。 第1名 中欧商学院 上榜 ...
分类:其他好文   时间:2016-09-22 06:34:01    阅读次数:733
Leetcode Trie Conclusion
...
分类:其他好文   时间:2016-09-22 06:31:05    阅读次数:131
Linq的一些应用1
一、Where的筛选功能 1、索引查询。where重载方法第一个参数查询对象,第二个参数计数器的索引,如: 找寻姓氏以x开头,索引为偶数的结果。 2、类型筛选 可以选晒数组中不同类型的对象,如string和into类型。 二、复合from子句 第二个子句访问第一个子句返回的对象 复合子句可以用Sel ...
分类:其他好文   时间:2016-09-22 06:31:37    阅读次数:156
(01背包)HDU - 2126 Buy the souvenirs
原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=2126 题意:给n个物品,和m块钱,输出最多物品个数和其方案数。 委屈:求出最多物品个数就是一个裸的01背包,但是同时求出方案数,难住了我。 想了半天,感觉可以一波dp求出来,但是又想不明白状态是怎么表示 ...
分类:其他好文   时间:2016-09-22 06:32:09    阅读次数:230
static关键字与方法区和类加载
1.static的作用 答:将成员变量或方法存储进方法区。因为方法区能保证数据只存在一份,只会加载一次(类加载器加载类的时候才加载一次) 注:static Object obj = new Object();方法区存储的是obj这个引用变量,而不是Obejct这个被创建的对象,对象依旧存储在堆中。只 ...
分类:其他好文   时间:2016-09-22 06:30:37    阅读次数:255
小知识点
同步和异步的区别: 在网络编程中,同步的意思是,进行收发数据,等到数据真正发送出去或者接受到,才返回;而异步的意思是,可以把数据发送到缓冲区中返回,而发送成功的消息是 通过时间进行通知的。异步可以腾出很多的cpu来处理其他事情,所以异步的方式比较灵活,线程同步是指,多个线程协同完成一件工作,一个线程 ...
分类:其他好文   时间:2016-09-22 06:30:37    阅读次数:164
34. Search for a Range
Given a sorted array of integers, find the starting and ending position of a given target value. Your algorithm's runtime complexity must be in the or ...
分类:其他好文   时间:2016-09-22 06:31:31    阅读次数:145
禅道行任务分解
http://www.zentao.net/book/zentaopmshelp/136.html 需求确定之后,项目中几个关键的因素都有了:周期确定、资源确定、需求确定。下面我们要做的事情就是为每一个需求做wbs任务分解,生成完成这个需求的所有的任务。note:是完成需求的所有任务,这里面包括但不 ...
分类:其他好文   时间:2016-09-22 06:31:56    阅读次数:283
实现2个排好序的子序列合并
数组a,b为已排序好的升序序列。 思路:1. 将a,b数组copy到一个新的数组c中(数组c的长度为a,b之和) 2. 在c中以数组a为基准,当b中的数值小于a的时候,a中以后数值向后移1位,然后把当前b的值赋值过来。 具体实现: ...
分类:其他好文   时间:2016-09-22 06:31:17    阅读次数:166
212. Word Search II
Given a 2D board and a list of words from the dictionary, find all words in the board. Each word must be constructed from letters of sequentially adja ...
分类:其他好文   时间:2016-09-22 06:30:43    阅读次数:182
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!