简述
开始学习Python的Django框架之后,马上就被这种开发方式吸引了,感觉十分的快以及简洁,就把自己的学习过程记录下来吧.
主要的学习方式就是参考官方文档(我安装的是最新的1.11版本),先跟着官方的Writing your first Django app来走一遍流程,然后再看详细的文档吧.
题目链接
Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), …, (an, bn) which makes sum of min(ai, bi) for all i from 1 to n as large as possible.
Example 1:1
2
3Input: [1,4,3,2]
Output: 4
Explanation: n is 2, and the maximum sum of pairs is 4 = min(1, 2) + min(3, 4).
Note:
题目链接
Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are not.
You need to merge them into a new binary tree. The merge rule is that if two nodes overlap, then sum node values up as the new value of the merged node. Otherwise, the NOT null node will be used as the node of new tree.
Example 1:1
2
3
4
5
6
7
8
9
10
11
12
13
14
15Input:
Tree 1 Tree 2
1 2
/ \ / \
3 2 1 3
/ \ \
5 4 7
Output: Merged tree:
3
/ \
4 5
/ \ \
5 4 7
**Note:** The merging process must start from the root nodes of both trees.
从这个博客开始打算坚持在LeetCode上刷一点算法题,之后可能也会有Python版本的现在还是用C++在写了,就先从简单题开始刷起了.
The Hamming distance between two integers is the number of positions at which the corresponding bits are different.
Given two integers x and y, calculate the Hamming distance.
Note:
0 ≤ x, y < 231.
Example:1
2
3
4
5
6
7Input: x = 1, y = 4
Output: 2
Explanation:
1 (0 0 0 1)
4 (0 1 0 0)
? ?
The above arrows point to positions where the corresponding bits are different.
在配置完OpenCV以及尝试过官方的例子之后,就开始学习一些需要用到的对图片的操作了.
因为对项目的功能实现有比较明确的需要使用的方法以及操作,所以就从这些需要的功能开始学习,在过程中再对其他的需要了解的知识进行补充吧.大致的学习范围是:
以上是需要学习的主要的功能,在理解上由于数学功力欠缺,只有对函数的很浅的理解和认识,在写博客的过程中也不会有太多的数学出现,主要还是以能够使用为主.
在OpenCV配置安装完成之后,先去看了一下官方的教程和例子,Introduction to Java Development,这是官方提供的一个面对Java开发者的快速的介绍,但是其中只有两个Demo,第一个就是配置时的测试代码.这里主要来看一下第二个例子.
刚刚进入暑假,就尝试在GithubPages上搭建了自己的博客,在暑假的自学期间尝试把自己的学习体会记录下来。所以就不可避免的要学习一下Markdown来写博客,在写建站记录之前先把学习Markdown的东西先记录一下。
Markdown是一种极简的语言,用来写博客再合适不过,这里也只是学习了一下最基本的语法和功能,在以后若是还有其他的东西再做补充。
标题便是最先遇到的语法了,非常的简单,只要在标题前面加上#就可以了,二级标题三级标题只要往下继续增加#便可。
例如:
# 一级标题
## 二级标题
### 三级标题
注: 在Markdown书写时要注意标签和文字之间要添加空格!!这点非常重要。