爬楼梯。题意是给一个数字n代表楼梯的高度,你可以每次爬一步或者两步,求有多少种不同的爬法。例子, Example 1: Input: 2 Output: 2 Explanation: There are two ways to climb to the top. 1. 1 step + 1 step ...
分类:
其他好文 时间:
2020-02-13 09:56:32
阅读次数:
70
Given two numbers, hour and minutes. Return the smaller angle (in sexagesimal units) formed between the hour and the minute hand. Example 1: Input: ho ...
分类:
其他好文 时间:
2020-02-13 09:30:42
阅读次数:
57
request 当一个页面被请求时,Django就会创建一个包含本次请求原信息的HttpRequest对象。Django会将这个对象自动传递给响应的视图函数,一般视图函数约定俗成地使用 request 参数承接这个对象。 常用值 request.method # 请求方法 GET POST,八种请求 ...
分类:
其他好文 时间:
2020-02-13 09:27:43
阅读次数:
71
加油站。题意是给一个长度为N的环,用数组表示。环上的每一个点都有两个值,一个是当前加油站的油量,一个是开到下一个加油站的耗油量。请找到一个起点能够保证车开完一圈,返回起点的坐标;若找不到这个起点则返回-1。例子, Example 1: Input: gas = [1,2,3,4,5] cost = ...
分类:
其他好文 时间:
2020-02-13 09:25:56
阅读次数:
59
转自:greenplum 官方的一片文档 https://gpdb.docs.pivotal.io/6-0/admin_guide/external/g-devel-fdw.html pg 是类似的 This chapter outlines how to write a new foreign-d ...
分类:
移动开发 时间:
2020-02-13 09:24:06
阅读次数:
106
简化路径。题意是给一个Unix环境下的绝对路径,请简化之。例子, Example 1: Input: "/home/" Output: "/home" Explanation: Note that there is no trailing slash after the last directory ...
分类:
其他好文 时间:
2020-02-13 09:21:36
阅读次数:
51
MyBatis generator用数据库表生成数据代码的时候,除了生成实体的POJO以外,会同时生成Example文件,以及在mapper.xml中生成Example的sql语句。 Example类包含一个内部静态类 Criteria,利用Criteria我们可以在类中根据自己的需求动态生成sql ...
分类:
其他好文 时间:
2020-02-13 00:24:20
阅读次数:
143
以下是来自mybatisgengertor官方解释,由谷歌翻译而成,可能理解有问题,希望大家指出来 IS NULL - 表示相关列必须为NULLIS NOT NULL - 表示相关列不能为NULL=(等于) - 表示相关列必须等于方法调用中传入的值<>(不等于) - 表示相关列不能等于方法调用中传入 ...
分类:
其他好文 时间:
2020-02-12 23:54:44
阅读次数:
161
<table tableName="%" enableInsert="true" enableDeleteByPrimaryKey="true" enableSelectByPrimaryKey="true" enableUpdateByPrimaryKey="true" enableCountBy ...
分类:
其他好文 时间:
2020-02-12 23:49:12
阅读次数:
295
Example 1: Input: secret = "1807", guess = "7810" Output: "1A3B" Explanation: 1 bull and 3 cows. The bull is 8, the cows are 0, 1 and 7. Example 2: In ...
分类:
其他好文 时间:
2020-02-12 22:25:22
阅读次数:
81