You are given qq queries in the following form: Given three integers lili, riri and didi, find minimum positive integer xixi such that it is divisible ...
分类:
其他好文 时间:
2019-01-12 14:17:46
阅读次数:
221
JavaScript中调皮的undefined 在JavaScript中undefined只是一个标识符,不是关键字,这个很不靠谱的标识符还不能像其他符号一样随意使用,一方面是需要它的原始值保持不变,另一方面是用法不当还会产生很多意向不到的bug。有这种不靠谱的标识符的语言遗留问题,我们在编程时为了 ...
分类:
编程语言 时间:
2019-01-10 17:42:06
阅读次数:
143
https://leetcode.com/problems/first-missing-positive/ O(1)空间复杂度,找到最小的没有出现在nums中的正整数。 其实算不上严格的swap,因为不用交换,当前的位置上如果不是正确放置的(不是正确放置:nums[i]!=i)那么,就把这个数字放到 ...
分类:
其他好文 时间:
2019-01-10 15:31:55
阅读次数:
170
题目如下: Given an array A, we can perform a pancake flip: We choose some positive integer k <= A.length, then reverse the order of the first k elements o ...
分类:
其他好文 时间:
2019-01-07 17:44:27
阅读次数:
248
Given an array A, we can perform a pancake flip: We choose some positive integer k <= A.length, then reverse the order of the first kelements of A. We ...
分类:
其他好文 时间:
2019-01-07 00:19:44
阅读次数:
261
Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to ou ...
分类:
其他好文 时间:
2019-01-06 14:22:02
阅读次数:
165
41. First Missing Positive 题目链接:https://leetcode.com/problems/first-missing-positive/ Description: Given an unsorted integer array, find the smallest ...
分类:
其他好文 时间:
2019-01-05 21:30:55
阅读次数:
200
Given a positive integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. Example: Input: 3 Output: [ [ 1, 2, 3 ], [ 8, ...
分类:
其他好文 时间:
2019-01-05 12:10:41
阅读次数:
136
DjangoORM常用的操作 项目位置 G:\asd\ORMdemo 实例:我们来假定下面这些概念,字段和关系 作者模型:一个作者有姓名和年龄。 作者详细模型:把作者的详情放到详情表,包含生日,手机号,家庭住址等信息。作者详情模型和作者模型之间是一对一的关系(one-to-one) 出版商模型:出版 ...
分类:
其他好文 时间:
2019-01-03 21:41:45
阅读次数:
190
今天头一次配置成功一个SSM框架,兴奋之余,还应该从使用的角度,将整个ssm配置的方法,配置的原因,认真的分析一下。在结束了对SSM框架简单的分析之后,就要开始回归基础,全面的认真复习。所以这个文档,要尽量的完整,目标就是,这个文档是是对SSM框架的学习,也是一个将来复习的资料。 1 resourc ...
分类:
Web程序 时间:
2019-01-02 21:15:06
阅读次数:
256