【算法正确性】所有的输入,都能停止,并有有正确的输出 【算法选择】易懂:),优雅:),高效:)(时间+空间) 【插入排序】左边的永远是已经拍好序的best case: T(n) = an + b; worst case: T(n) = an^2 + bn + c 【θ】θ(g(n)) = {f(n) ...
分类:
编程语言 时间:
2020-01-24 16:04:44
阅读次数:
80
题目 :http://poj.org/problem?id=3617 给定一个字符序列S,按一定规则输出最小字典序的结果,规则是:如果S的头部字符小于尾部字符,那么将S的头部字符加到输出字符串,然后删除这个字符,得到新的头部字符,反之同样。 输入样例 : 6 A C D B C B 输出样例 : A ...
分类:
其他好文 时间:
2020-01-22 22:22:56
阅读次数:
85
参考来源: https://www.cnblogs.com/best/p/9676515.html#_lab2_1_2 https://www.yiibai.com/maven/maven_repositories.html 一、Maven的生命周期阶段 (补充生命周期自画图) 3个生命周期: 1) ...
分类:
其他好文 时间:
2020-01-22 18:42:56
阅读次数:
98
参考来源: https://www.cnblogs.com/best/p/9676515.html#_lab2_1_2 https://www.yiibai.com/maven/maven_repositories.html 一、什么是Maven? Maven是当前最受欢迎的Java项目管理和构建自 ...
分类:
其他好文 时间:
2020-01-22 18:32:30
阅读次数:
84
[Luogu2870] [USACO07DEC]最佳牛线Best Cow Line(贪心+后缀数组) 题面 FJ打算带他的$N(1 \leq N \leq 30,000)$头奶牛去参加一年一度的“全美农场主大奖赛”。在这场比赛中,每个参赛者都必须让他的奶牛排成一列,然后领她们从裁判席前依次走过。 今 ...
分类:
编程语言 时间:
2020-01-20 22:49:16
阅读次数:
88
全文摘录自:https://www.cnblogs.com/best/p/7474442.html#!comments 感谢原博主 Git文件的4种状态 Untracked: 未跟踪, 此文件在文件夹中, 但并没有加入到git库, 不参与版本控制. 通过git add 状态变为Staged Unmo ...
分类:
其他好文 时间:
2020-01-11 18:45:33
阅读次数:
47
全文摘录自:https://www.cnblogs.com/best/p/7474442.html#!comments 感谢原博主 1.1、什么是版本控制 版本控制(Revision control)是一种在开发的过程中用于管理我们对文件、目录或工程等内容的修改历史,方便查看更改历史记录,备份以便恢 ...
分类:
其他好文 时间:
2020-01-11 11:30:40
阅读次数:
67
原题链接在这里:https://leetcode.com/problems/best-meeting-point/ 题目: A group of two or more people wants to meet and minimize the total travel distance. You ...
分类:
其他好文 时间:
2020-01-06 09:14:27
阅读次数:
87
#include <bits/stdc++.h> #include<math.h> using namespace std; const int MAX_LEN = 2005; //const int MAX_D = 31; struct student{ int id; int Cgrade; i ...
分类:
编程语言 时间:
2020-01-05 13:43:49
阅读次数:
66
1012 The Best Rank (25分) To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Prog ...
分类:
编程语言 时间:
2020-01-03 21:01:24
阅读次数:
72