码迷,mamicode.com
首页 >  
搜索关键字:row    ( 12323个结果
MYSQL 添加外键报错
2014年6月16日 10:48:51出错的部分提示摘录:#1452 - Cannot add or update a child row: a foreign key constraint failsresult 2 when explaining filename '#sql-3d5_20436...
分类:数据库   时间:2014-06-18 21:01:47    阅读次数:332
织梦菜单导航调用特定栏目
织梦菜单导航调用特定栏目的修改正常:{dede:channel type='top' row='10' currentstyle="~typename~"} [field:typename/] {/dede:channel}变成:{dede:channelartlist typeid="2...
分类:其他好文   时间:2014-06-18 19:03:16    阅读次数:3850
【Leetcode】Pascal's Triangle II
Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3, Return [1,3,3,1]. Note: Could you optimize your algorithm to use only O(k) extra space? 思路:最简单的方法就是按...
分类:其他好文   时间:2014-06-18 12:40:54    阅读次数:265
【Leetcode】Set Matrix Zeroes
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. Could you devise a constant space solution? 思路:因为需要遍历整个矩阵,时间复杂度肯定需要O(m * n),对于空间复杂度而言,第一种是可以使用O(m * n),...
分类:其他好文   时间:2014-06-18 12:33:39    阅读次数:167
[matlab]改变矩阵的大小并保存到txt文件
要完成的任务是,加载一个保存在txt文件中的矩阵, 并把它扩大10倍,并且要再次保存回去 %加载txt文件 >load(‘Matrix.txt’); %扩大10倍 repmat(Matrix,row column) % 这里的matrix 参数是要对其进行修改的matrix, 其中row是要新建的一...
分类:其他好文   时间:2014-06-15 22:02:20    阅读次数:756
excel
可以用宏表函数GET.DOCUMENT(),得到当前页(垂直方向分页): 1、定义两个名称: (1)Page,引用位置:=IF(ISNA(MATCH(ROW(),GET.DOCUMENT(64))),1,MATCH(ROW(),GET.DOCUMENT(64))+1); (2)TotalPage,引用位置:=GET.DOCUMENT(50); 2、在需要显示结果的单元格中输入公式: ="...
分类:其他好文   时间:2014-06-15 19:23:37    阅读次数:208
【Leetcode】Search a 2D Matrix
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted from left to right.The first integer of each...
分类:其他好文   时间:2014-06-15 14:12:44    阅读次数:238
leetcode Sudoku java
package com.sogou.hadoop.test;public class Sudoku {/**验证该值是否合法*/ public boolean isValidSudoku(char[][] board,int x,int y){ int row,col; ...
分类:编程语言   时间:2014-06-15 00:51:03    阅读次数:292
Leetcode:Triangle
Decription:Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, gi...
分类:其他好文   时间:2014-06-14 19:46:12    阅读次数:251
T-SQL——ROW_NUMBER
ROW_NUMBER 表示根据partymun进行顺序排列,并为每一条记录添加这条记录在多少行的序号。...
分类:数据库   时间:2014-06-13 21:35:52    阅读次数:320
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!