Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i...
分类:
其他好文 时间:
2014-12-30 08:09:14
阅读次数:
161
Given a root of Binary Search Tree with unique value for each node. Remove the node with given value. If there is no such a node with given value in t...
分类:
其他好文 时间:
2014-12-30 08:08:42
阅读次数:
236
先说Vector吧。如果说C++的vector容器怎么用,如果我说太多肯定一下子就暴露了我菜鸟的身份。所以呢,在这里不过多阐述,也请大神绕路。所以,还是回到Vector的使用问题上吧。该怎么用?既然Vector是替代了Array,那就拿Array 和Vector进行对比吧。下面我就以创建 Sprit...
分类:
其他好文 时间:
2014-12-30 08:08:53
阅读次数:
186
LuaTinker的bug和缺陷
LuaTinker是一套还不错的C++代码和Lua代码的绑定库,作者是韩国人Kwon-il Lee,作者应该是参考了LuaBind后,为了简化和避免过重而实现的。其官网在http://gpgstudy.com/gpgiki/LuaTinker ,但可惜全部是韩文的,而最新的代码可以在Git上下载,https://github.com/zupet/LuaTin...
分类:
其他好文 时间:
2014-12-30 07:07:20
阅读次数:
220
想来都有点恨自己,前几个月遇到的"难题".还是没有解决.一直卡死,又找不出原因.
吐个槽,那些只贴代码不附上运行结果的toturial, 我表示...我就不明白,既然有些bloger代码都给出来了
让我这种渣渣看一下肿么用的会怎么样?看一下你运行结果会怎么样?
------------------------------------------------
问题代码一:
/***...
分类:
其他好文 时间:
2014-12-30 07:05:41
阅读次数:
218
编译器对C++ 11变参模板(Variadic Template)的函数包扩展实现的差异
题目挺绕口的。C++ 11的好东西不算太多,但变参模板(Variadic Template)肯定是其中耀眼的一颗明星,在C++设计新思维中,你可以看到很多模版的代码为了支持不确定的参数个数,而要重载1个参数到N个模板参数的N个函数。虽然种代码一般也是用会用宏和脚步辅助生成。但我想也没有人愿意看到几千行这...
分类:
编程语言 时间:
2014-12-30 07:05:19
阅读次数:
258
折腾了一晚,终于在Scala IDE(Eclipse加Sacla插件了)下可以看Apache Kafka工程的源代码了。
我的环境是:win7 32位,Scala IDE:4.0.0,Apache Kafka:0.8.1.1(加了一个0.8.2版本里的gradlew.bat文件)
Scala IDE下载好后,我就开始找Apache Kafka的源代码。刚开始一直用...
分类:
其他好文 时间:
2014-12-30 07:04:16
阅读次数:
1157
Excel Sheet Column Number
Total Accepted: 1643
Total Submissions: 3860
Related to question
Excel Sheet Column Title
Given a column title as appear in an Excel sheet, return its correspondin...
分类:
其他好文 时间:
2014-12-30 07:04:32
阅读次数:
217
Intersection of Two Linked Lists
Total Accepted: 8676
Total Submissions: 32571
Write a program to find the node at which the intersection of two singly linked lists begins.
For example, the...
分类:
其他好文 时间:
2014-12-30 07:05:06
阅读次数:
172
Find Minimum in Rotated Sorted Array
Total Accepted: 21207
Total Submissions: 65855
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might bec...
分类:
其他好文 时间:
2014-12-30 07:06:33
阅读次数:
166
新浪微博数据挖掘菜谱之三: 搜索篇 (selenium)...
分类:
其他好文 时间:
2014-12-30 07:04:37
阅读次数:
310
今天用了下Android Studio,出现了一些问题,现在将启动过程中遇到的问题和解决方案列出来,方便大家参考。安装过程不多说,网上一搜一大把。那直接说问题吧:1. 无法启动,报错:Failed to allocate memory: 8This application has requested the Runtime to terminate it in an unusual way.Ple...
分类:
移动开发 时间:
2014-12-30 07:04:23
阅读次数:
359
1. 查看盘$diskutil list/dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme ...
分类:
其他好文 时间:
2014-12-30 07:05:40
阅读次数:
173
Given an array ofnobjects with k different colors (numbered from 1 to k), sort them so that objects of the same color are adjacent, with the colors in...
分类:
其他好文 时间:
2014-12-30 07:04:30
阅读次数:
142
这是在开发国际机票查询页时碰到的一个问题,测试工程师在IE里执行查询操作,然后把查询的url赋值到firefox的地址栏,firefox打开后就变成乱码了。1. IE浏览器,选择出发地,出发日期等后点击下查询2. 跳转到查询页,赋值IE浏览器里的URL3. 拷贝到Firefox/Chrome浏览器地...
分类:
Web程序 时间:
2014-12-30 07:05:09
阅读次数:
209
作者openkk2012-03-04 18:26:58文/Windstorm有一段时间没更新了。最近在忙一个 Server+Client 的项目,Client 是 Android 手机,大概也就是几十的规模。Server 是纯 Golang 实现,没有 apache 或者 ngix 这种 web s...
分类:
编程语言 时间:
2014-12-30 07:02:40
阅读次数:
211
题目:Clone an undirected graph. Each node in the graph contains alabeland a list of itsneighbors.OJ's undirected graph serialization:Nodes are labeled u...
分类:
其他好文 时间:
2014-12-30 07:03:08
阅读次数:
208