ALTER [ONLINE | OFFLINE] [IGNORE] TABLE tbl_name
alter_specification [, alter_specification] ...
alter_specification:
table_options
| ADD [COLUMN] col_name column_definition
[...
分类:
数据库 时间:
2015-05-09 10:17:24
阅读次数:
127
leetcode - Reverse Linked List单链表逆置。/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(i...
分类:
其他好文 时间:
2015-05-08 19:50:44
阅读次数:
250
#首先需将系统时间设置为每个月的第一个周一,然后运行此脚本$wbs = 0..3$sheets = 1..5$rows = 4..6 #142$definition = 1..40 | ForEach-Object {"rev. " + $_.ToString().PadLeft(3,"0")}.....
分类:
其他好文 时间:
2015-05-08 19:48:27
阅读次数:
119
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
基本思路:
由于队列已经进行排序,每次取其中点,作为树的根。
即可建得一棵平衡二叉树。
/**
* Definition for a binary tree node.
*...
分类:
其他好文 时间:
2015-05-08 18:14:35
阅读次数:
111
1 # Definition for a binary tree node. 2 # class TreeNode: 3 # def __init__(self, x): 4 # self.val = x 5 # self.left = None 6 # ...
分类:
其他好文 时间:
2015-05-08 18:07:55
阅读次数:
111
Reverse a singly linked list. 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNode *next; 6 * ...
分类:
其他好文 时间:
2015-05-07 16:35:52
阅读次数:
81
/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode(int x) { val = x; } * } */public...
分类:
其他好文 时间:
2015-05-06 14:32:48
阅读次数:
86
Reverse Linked List2015.5.6 05:04Reverse a singly linked list.Solution: Too old.Accepted code: 1 // 1CE, 1AC, not perfect 2 /** 3 * Definition for s.....
分类:
其他好文 时间:
2015-05-06 06:55:41
阅读次数:
123
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
题意:将一个有序数组变成二叉搜索树。
思路:简单的递归。
/**
* Definition for a binary tree node.
* public class TreeNode {...
分类:
其他好文 时间:
2015-05-05 21:59:06
阅读次数:
117
Reverse a singly linked list.
递归方法
/**
* Definition for singly-linked list.
* public class ListNode {
* int val;
* ListNode next;
* ListNode(int x) { val = x; }
* }
*/
publi...
分类:
其他好文 时间:
2015-05-05 19:46:19
阅读次数:
121