Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:
其他好文 时间:
2014-10-26 16:58:18
阅读次数:
134
Follow up for N-Queens problem.
Now, instead outputting board configurations, return the total number of distinct solutions.
class Solution {
private:
int res;
public:
int totalNQuee...
分类:
其他好文 时间:
2014-10-26 15:43:03
阅读次数:
168
url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分浏览器支持。timeout: 要求为Number类型的参数,设置请求超...
分类:
Web程序 时间:
2014-10-26 15:31:06
阅读次数:
190
Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen left-o...
分类:
其他好文 时间:
2014-10-26 15:30:30
阅读次数:
159
DECLARE
l_return_status VARCHAR2(1);
l_return_code VARCHAR2(1000);
l_exception_msg VARCHAR2(4000);
l_online_report_id NUMBER;
BEGIN
--init
mo_global.set_policy_context(p_access_...
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:
其他好文 时间:
2014-10-26 11:35:14
阅读次数:
142
http://blog.csdn.net/kenden23/article/details/18696083本题是十分麻烦的题目,情况是非常多,网上也很多方法,其中最有效,优雅的方法是有限状态自动机(Finite automata machine)。其他一般方法都会十分复杂,而代码不能算优雅。为此我...
分类:
其他好文 时间:
2014-10-26 11:30:51
阅读次数:
171
1,采用reverse的方法,来比较是不是palindrome2,reverse number的方法!!3,还要记得负数的情况package Leetcode;public class PalindromeNumber {public boolean isPalindrome(int x) { .....
分类:
其他好文 时间:
2014-10-26 08:00:01
阅读次数:
208
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:
其他好文 时间:
2014-10-26 07:58:51
阅读次数:
161
本文将对一个简单的TCP回射服务器和客户端进行抓包,从而分析一次成功而理想TCP会话的基本流程,多次不成功或与预期不一致的抓包结果将在下篇博文进行分析本文程序编译环境为:Linux version 3.16.4-1-ARCHgcc version 4.9.1 20140903 (prerelease...
分类:
其他好文 时间:
2014-10-26 06:46:47
阅读次数:
271