/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* ...
分类:
其他好文 时间:
2015-06-18 00:44:59
阅读次数:
128
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
Li...
分类:
其他好文 时间:
2015-06-17 11:41:56
阅读次数:
123
html代码:赋值:$("#userIDHide").val("value");取值:var userID = $("#userIDHide").val();
分类:
移动开发 时间:
2015-06-17 11:16:12
阅读次数:
137
#region 移除字符串末尾指定字符
///
/// 移除字符串末尾指定字符
///
/// 需要移除的字符串
/// 指定字符
/// 移除后的字符串
public static string RemoveLastChar(string str, string val...
Scala基础学习摘要:在篇主要内容:如何把Scala当做工业级的便携计算器使用,如何用Scala处理数字以及其他算术操作。在这个过程中,我们将介绍一系列重要的Scala概念和惯用法。同时你还将学到作为初学者如何浏览Scaladoc文档1. 使用Scala解释器2. 用var和val定义变量3. 数...
分类:
其他好文 时间:
2015-06-17 08:12:00
阅读次数:
394
这道题太简单了,不值得一提·········/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x)...
分类:
其他好文 时间:
2015-06-16 20:44:51
阅读次数:
134
无参方法
关于方法re和im还有一个小问题:你必须在名字后面加上一对括号来调用它们。请看下面的例子:
object ComplexNumbers {
def main(args: Array[String]) {
val c = new Complex(1.2, 3.4)
println("imaginary part: " + c.im())
}
}
你可能觉得吧这些函数...
分类:
其他好文 时间:
2015-06-16 19:19:45
阅读次数:
129
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
ListNode* reverseList(ListNode* he...
分类:
其他好文 时间:
2015-06-16 17:04:14
阅读次数:
88
Remove all elements from a linked list of integers that have value val.
Example
Given: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6
Return: 1 --> 2 --> 3 --> 4 --> 5
/**
* Definition fo...
分类:
其他好文 时间:
2015-06-16 17:02:57
阅读次数:
129
调用一个指定栏目列表: {pc:contentaction="lists"catid="6"order="idDESC"num="4"}{loop$data$key$val}{$val['title']}{/loop}{/pc}调用同栏目下多个子栏目列表: {php$subcatid=ar...
分类:
Web程序 时间:
2015-06-16 16:29:32
阅读次数:
141