码迷,mamicode.com
首页 >  
搜索关键字:end    ( 30778个结果
[LeetCode 127] Word Ladder
https://leetcode.com/problems/word-ladder/ http://www.lintcode.com/zh-cn/problem/word-ladder/ 给出两个单词(start和end)和一个字典,找到从start到end的最短转换序列 比如: 每次只能改变一个字...
分类:其他好文   时间:2015-05-19 20:35:47    阅读次数:122
for_each函数
for_each函数的用法 std::for_each(cpths.begin(), cpths.end(), print); 其中print函数为 void print(const std::string& e) { std::cout << e << std::endl; } 以上语句 等价于: std::vector::const_iterator iter = cpths.be...
分类:其他好文   时间:2015-05-19 19:05:36    阅读次数:94
sql表结构和注释
SELECT 表名=case when a.colorder=1 then d.name else '' end, 表说明=case when a.colorder=1 then isnull(f.value,'') else ''...
分类:数据库   时间:2015-05-19 18:51:21    阅读次数:186
05-面向对象语法04
一、 继承 1. 继承的基本用法 l 设计两个类Bird、Dog // Bird的声明 @interface Bird : NSObject { @public int weight; } - (void)eat; @end // Bird的定义 @implementation Bird - (vo...
分类:其他好文   时间:2015-05-19 18:31:15    阅读次数:198
MS SQLServer 交叉报表(行列互换)
在MS-SQLServer 2005 中可以使用pivot运算符来来实现行列转换. ,但在之前版本中必须使用 case when then else end 语句 下面以学生成绩表来举例: id姓名 科目 成绩 1 张三 语文 60 2 张三 数学 65 3 张三 外语 70 4 李四 语文 80 5 李四 数学 90 6 李四 外语 85 7 王五 语文 70 8...
分类:数据库   时间:2015-05-19 13:09:46    阅读次数:152
LaTeX下的表格处理(转)
LaTeX下的表格处理李阿玲·1 年前在LaTeX里面,画一个表格大致上是如此:\begin{tabular}{|c|c|c|}\hline 2&9&4\\\hline 7&5&3\\\hline 6&1&8\\\hline\end{tabular}画出来实际上是这样:这个tabular环境是LaT...
分类:其他好文   时间:2015-05-19 10:17:13    阅读次数:261
创建存储过程
1 -----存储过程的学习 2 --不带参数没有返回值的存储过程 3 /* 4 create proc usp_存储过程的名字 5 as 6 begin 7 --语句 8 end 9 */10 11 create proc usp_Getdt_article12 as13 begin14 ...
分类:其他好文   时间:2015-05-18 20:09:07    阅读次数:97
LeetCode: Binary Tree Maximum Path Sum
Title:Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, ...
分类:其他好文   时间:2015-05-18 16:35:54    阅读次数:108
ORACLE CASE WHEN 及 SELECT CASE WHEN的用法
Case具有两种格式。简单Case函数和Case搜索函数。--简单Case函数 CASE sex WHEN '1' THEN '男' WHEN '2' THEN '女' ELSE '其他' END --Case搜索函数 CASE WHEN sex = '1' THEN '男' WHEN...
分类:数据库   时间:2015-05-18 14:39:10    阅读次数:255
【leetcode】Remove Nth Node From End of List
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 remov...
分类:其他好文   时间:2015-05-18 14:27:38    阅读次数:90
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!