I have no surprise that one of your favorite musical artists is Charlie Puth, his songs is also very popular in China, and he has a nickname in Chinese, called “断眉(duan mei)”, which means that his eaybrow is broken(but it’s pretty cool for him). And i found that i have listened some of your sharing songs before:
Writing and Speaking
Speaking
Part 1
I myself enjoy cinema, drama, poetry and travelling.
One of my friends like to read biography of great men to enhance himself.
She majored in International Economy at university.
Geometry is a piece of cake for me but a big headache for my friend Claire.
But hey, leaving work at five o’ clock means I eat dinner with my family.
不过,嘿,5点钟就下班,意味着我可以和家人一起吃晚饭啦。
Hereby I would like to present my point of view.
这里我将阐述一下自己的观点
here are several reasons to support my point of view.
对于我的观点有很多理由。
be drawn toward 向靠拢
I’m drawn toward the neutral view;
In short
EXERCISE 1:
In China, the tide of opinion is now running steadily against homosexuality, in my opinion, I’m drawn toward the neutral view, here are several reasons to support my point of view. The first is that someone is born to be a homosexual, regardless of where they live, the society and government should support every citizen, including them, to developing a harmony society. On the contrast, someone became a homosexual just because they indulge in carnal pleasure without restraint, It’s a well-established fact that carnalism is pretty bad, and most important is that homosexual can be more easily effected the AIDS than normal people. In short, It’s an opened question about morality which cannot be stantardized by anyone.
算法Basic-BFS
Flood Fill
- 优点:可以在线性时间内找到某个点所在的联通块;
池塘计数
1 | #include <iostream> |
算法Basic--Trie树并查集堆
头条2018年题
863. 国庆旅行
https://www.acwing.com/problem/content/865/
1 | #include<iostream> |
算法Basic-双指针位运算离散化合并区间
双指针
799. 最长连续不重复子序列
https://www.acwing.com/problem/content/801/
- 解析:双指针算法:$O(n)$;i一直往前;j往左最远能到什么地方;
1 | #include <iostream> |
算法Basic--图论最短路
算法Basic-排序二分
课上:理解主要思想;
课后:背过,针对题目进行模板默写;
熟练度练习:AC之后,删除然后重写,重复3~5次。
快速排序算法模板:
步骤:1.随便找一个x; 2.二分数组,使得左边的的小于x,右边的大于x。3. 递归。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18void quick_sort(int q[], int l, int r)
{
if (l >= r) return;
int i = l - 1, j = r + 1, x = q[l + r >> 1];
while (i < j)
{
do i ++ ; while (q[i] < x);
do j -- ; while (q[j] > x);
if (i < j) swap(q[i], q[j]);
}
quick_sort(q, l, j), quick_sort(q, j + 1, r);
}
作者:yxc
链接:https://www.acwing.com/blog/content/277/
来源:AcWing
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
算法Basic-DP
算法Basic--高精度
高精度—-基础算法篇2
791. 高精度加法
题:https://www.acwing.com/problem/content/793/
1 | #include <iostream> |