一、如何用AJAX调用JsonResult方法比如FuckController中添加有个返回JsonResult类型的方法FuckJson():public JsonResult FuckJson(){ return new JsonResult() { Data = n...
分类:
Web程序 时间:
2014-07-07 20:53:31
阅读次数:
367
eval(phpcode)eval() 函数把字符串按照 PHP 代码来计算。相当于在字符串两边分别加上PHP语法标签该字符串必须是合法的 PHP 代码,且必须以分号结尾。如果没有在代码字符串中调用 return 语句,则返回 NULL。如果代码中存在解析错误,则 eval() 函数返回 false...
分类:
Web程序 时间:
2014-07-07 20:14:26
阅读次数:
230
题目:Given a linked list, remove the nth node from the end of list and return its head.For example,Given linked list: 1->2->3->4->5, and n = 2.After rem...
分类:
其他好文 时间:
2014-07-07 19:01:42
阅读次数:
155
想实现通过点击button实现文字样式的交替改变,在实现function的中断过程中遇到了一些问题,所幸解决了 改变CSS样式 HELLO WORLD! HELLO WORLD! 改变样式
分类:
其他好文 时间:
2014-07-07 18:04:32
阅读次数:
182
今天在编译PDF时发现使用了一下STL中的z数值极限竟然编译不过,return GetRangeConstraint(value ::max(), true);出现如下错误:warning C4003: “max”宏的实参不足error C2589: “(” : “::”右边...
分类:
其他好文 时间:
2014-07-07 18:03:56
阅读次数:
190
【题目】
Given a binary tree, return the postorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [3,2,1].
Note: Recursive solution is trivial, could you do it iteratively?
【题意】
非递归实现后续遍...
分类:
其他好文 时间:
2014-06-30 10:10:10
阅读次数:
177
【题目】
Given a binary tree, return the preorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [1,2,3].
Note: Recursive solution is trivial, could you do it iteratively?
【题意】
非递归返回先序遍历...
分类:
其他好文 时间:
2014-06-30 06:21:18
阅读次数:
334
【题目】
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
Follow up:
Can you solve it without using extra space?
【题意】
给定一个单向链表,如果链表有环,则返回环开始的位置。
【思路】
仍然是维护两个指针, p1, p2, p1每次走一步, p2每次走两步
...
分类:
其他好文 时间:
2014-06-29 23:59:21
阅读次数:
354
题目链接:点击打开链接
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define N 5005
#define ll __int64
inline ll Abs(ll x){return x>...
分类:
其他好文 时间:
2014-06-29 23:48:09
阅读次数:
362
【题目】
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
get(key) - Get the value (will always be positive) of the key if the key exists in the cache, otherwise return -1.
se...
分类:
其他好文 时间:
2014-06-29 22:45:26
阅读次数:
358