The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a 2D grid. Our valiant knight (K) was initially pos...
分类:
其他好文 时间:
2015-01-31 00:33:24
阅读次数:
176
rectangular美:[rek'tæ?ɡj?l?r]英:[rek'tæ?ɡj?l?(r)]adj.矩形的;成直角的grid美:[ɡr?d]英:[ɡr?d]n.网格;格栅;方格;(地图上的)坐标方格scenario美:[s??n?rio?]英:[s??nɑ?rio?]n.方案;(可能发生的)情况;...
分类:
其他好文 时间:
2015-01-30 22:34:06
阅读次数:
268
【题目】
Given a 2D board and a word, find if the word exists in the grid.
The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or...
分类:
其他好文 时间:
2015-01-30 16:05:43
阅读次数:
225
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
The robot can only move either down or right at any point in time. The robot is trying to reach th...
分类:
编程语言 时间:
2015-01-30 16:05:00
阅读次数:
257
【转载】 今天在执行compass create my-grid –using blueprint 命令时发现报错 google了一下,说是新版compass已经不包括compass-bluprint了。 所以我尝试执行命令 “gem install compass-blueprint”,自己手动安...
分类:
Web程序 时间:
2015-01-30 15:08:14
阅读次数:
205
题目链接:HDU 1992 Tiling a Grid With Dominoes
题意:一个4*N的矩形,用1*2的小矩形铺满的方法数是多少。
思路:4*N。只有4行想到状压,dp[i][j]表示前i行状态j的方法数,影响当前行的只有上一行!0成对出现表示横着放,1表示竖着放,所以第一行的状态0.3.9.12.15五种,并且只要上一行是0状态。当前行的状态就为0.3.9.12.15五种可能。...
分类:
其他好文 时间:
2015-01-30 09:16:04
阅读次数:
134
前端代码:
Ext.onReady(function(){
Ext.define('Person', {
extend: 'Ext.data.Model',
fields: [{name: 'id',
type: 'int',
useNull: true
}, 'email', 'first', 'last'],
va...
分类:
Web程序 时间:
2015-01-30 09:12:49
阅读次数:
158
--renderers渲染器
可以格式化该列显示的数据格式或者按照你自定义的脚本显示最终数据样子
先看下renderer: function()里的参数
renderer:function(value, cellmeta, record, rowIndex, columnIndex, store){
}
1.value是当前单元格的值
2.cellmeta里保存...
分类:
Web程序 时间:
2015-01-30 09:11:26
阅读次数:
336
环境交待:
Linux 6.3
Oracle Rac 11.2.0.4
[root@web1 grid]# /u01/app/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set...
分类:
数据库 时间:
2015-01-29 22:37:01
阅读次数:
1805
今天栽了大跟头,,,,EXTjs右键可以获取到选中的那一列的索引值,只需在回调函数中取到那一列的数据就可以ok,不用再费尽心思的费用执行click的事件grid.on("rowcontextmenu",function(grid,rowIndex,e){ e.preventDefault();我想在...
分类:
其他好文 时间:
2015-01-29 22:25:16
阅读次数:
274