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 p ...
分类:
编程语言 时间:
2016-06-25 17:43:33
阅读次数:
152
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 p ...
分类:
其他好文 时间:
2016-06-23 00:49:54
阅读次数:
147
jQuary基础选择器 $("div*")获取div下面的所有元素 $(".red,.green").html("怎么") // 需要注意的是要把两个选择前写在同一个引号内 $("ance desc") //ancestor祖先选择器 descendant子孙选择器 $(“parent > chil ...
分类:
其他好文 时间:
2016-06-17 17:09:10
阅读次数:
510
错误如下: hibernate operation: could not execute query; uncategorized SQLException for SQL [select count(*) as y0_ from customer this_ where this_.custome ...
分类:
其他好文 时间:
2016-06-13 11:30:17
阅读次数:
151
Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikipedia ...
分类:
其他好文 时间:
2016-06-09 00:17:54
阅读次数:
178
Description The rotation game uses a # shaped board, which can hold 24 pieces of square blocks (see Fig.1). The blocks are marked with symbols 1, 2 an ...
分类:
其他好文 时间:
2016-06-08 18:48:39
阅读次数:
279
思路,先判断入口是否有非法输入。 1 如果某一个root==p || root == q,那么LCA肯定是root(因为是top down,LCA肯定在root所囊括的树上,而root又是p q其中一个节点了,那么另外一个节点肯定在root之下,那么root就是LCA),那么返回root 2 如果r ...
分类:
其他好文 时间:
2016-06-01 06:49:14
阅读次数:
141
一天一道LeetCode系列(一)题目
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 robo...
分类:
其他好文 时间:
2016-05-27 12:18:25
阅读次数:
209
题目链接:https://leetcode.com/problems/unique-paths/
题目:
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 ri...
分类:
其他好文 时间:
2016-05-27 11:55:25
阅读次数:
179