码迷,mamicode.com
首页 >  
搜索关键字:right    ( 9126个结果
【leetcode】Unique Paths
A robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot can only move either down or right at any point ...
分类:其他好文   时间:2014-06-28 16:02:43    阅读次数:214
【leetcode】Minimum Path Sum
Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along its path.Note:Yo...
分类:其他好文   时间:2014-06-28 15:55:58    阅读次数:196
CSS 选择器
ID 选择器:#green {color:green;}是绿色的。ID 选择器 + 派生选择器:#table1 td { text-align: right; font-style: normal; color: blue; }#table1 tr { color: #...
分类:Web程序   时间:2014-06-28 12:59:30    阅读次数:208
Leetcode Rotate List
Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.先算出链表...
分类:其他好文   时间:2014-06-24 14:03:10    阅读次数:192
LeetCode Validate Binary Search Tree
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(...
分类:其他好文   时间:2014-06-24 13:40:33    阅读次数:214
LeetCode Balanced Binary Tree
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(...
分类:其他好文   时间:2014-06-24 13:32:40    阅读次数:157
SPOJ_NSUBSTR
题目意思是给你一个字符串,f[x]是长度为x的子串中,出现个数最多的那个串的出现次数。给出原串,依次输出f[1],f[2],……。后缀自动机。对于某一个状态,right[]值的大小就是出现的次数,而且是对于长为step[]的子串的出现次数。因为小于step值的串在前面已经加了,在pre指针线上面的状...
分类:其他好文   时间:2014-06-23 07:14:18    阅读次数:254
Leetcode:Minimum Path Sum 矩形网格最小路径和
Minimum Path Sum:Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along...
分类:其他好文   时间:2014-06-22 23:06:39    阅读次数:290
html/css入门第一篇
1.基本教程学习 大概三天业余时间看完下面两个教程。 HTML文字教程 CSS文字教程 2.练习 看完教程后,做第一练习时,总结如下: 1)div居中 需要设置属性:margin-left:auto; margin-right:auto; 2) 给图片加链接后,图片有边框,消除边框方法:给图片设置属性 border-width:0px; 3)图片相连时,图片间有距离,消除...
分类:Web程序   时间:2014-06-22 17:02:52    阅读次数:253
poj1942 Paths on a Grid 【排列组合】
关于这个题想说一下,刚开始准备按照有一个含有n个数的非递减序列,每个数最大值为m,数字可以重复,有多少种这样的序列,像是一个蛮复杂的排列组合 其实这道题,从left bottom到right up只能向右或者向上,也就是m+n个格子里面取m个格子写右,n个格子写上,就成了个很2的排列组合问题 值得强调的是,这个题求组合数是用分数相乘来求的,怕double丢精度可以末尾+0.5然后转化为long...
分类:其他好文   时间:2014-06-22 16:53:21    阅读次数:135
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!