栈: 1.First In Last Out(FILO) 2.先进后出,后进先出(桶/弹夹等) python实现栈: class Stack(object): def __init__(self): self.stack = [] def pop(self): if self.is_empty(): ...
分类:
其他好文 时间:
2020-03-16 19:16:02
阅读次数:
59
类似Hdu3336 给出一个字符串,请算出它的每个前缀分别在字符串中出现了多少次。再将这些结果加起来输出InputThe first line include a number T, means the number of test cases. For each test case, just a ...
分类:
其他好文 时间:
2020-03-16 19:15:49
阅读次数:
66
package first;public class 九九乘法表 { public static void main(String [] args){ int a,b; for (a=1;a<=9;a++){ for (b=1;b<=a;b++){ System.out.print(b+"*"+a+ ...
分类:
其他好文 时间:
2020-03-16 18:59:42
阅读次数:
161
cd find . -type d -name ".git"|xargs rm -rf find . -type d -name ".svn"|xargs rm -rf rm -fr .git git init git add . git commit -m "first" git remote a ...
分类:
其他好文 时间:
2020-03-16 14:54:23
阅读次数:
110
SQL 函数 SQL 拥有很多可用于计数和计算的内建函数。 SQL Aggregate 函数 SQL Aggregate 函数计算从列中取得的值,返回一个单一的值。 有用的 Aggregate 函数: AVG() - 返回平均值 COUNT() - 返回行数 FIRST() - 返回第一个记录的值 ...
分类:
数据库 时间:
2020-03-16 09:20:05
阅读次数:
61
【Unity加载二进制数据】 The first step is to save your binary data file with the ".bytes" extension. Unity will treat this file as a TextAsset. As a TextAsset ... ...
分类:
编程语言 时间:
2020-03-16 09:18:31
阅读次数:
132
Flutter中json转换model, 除了手动转之外, 就是利用第三方库做一些代码生成.
流行的库有: [json_serializable](https://pub.dev/packages/json_serializable)和[built_value](https://pub.dev/p... ...
分类:
Web程序 时间:
2020-03-16 09:16:44
阅读次数:
77
echo "# qipai" >> README.md git init git add README.md git commit -m "first commit" git remote add origin git@github.com:rongjie184/qipai.git git push ...
分类:
Web程序 时间:
2020-03-15 22:13:50
阅读次数:
152
1 //搞清楚各个变量的含义 2 //***忘记对数组进行排序,以至于一直卡在这里*** 3 class Solution 4 { 5 public: 6 int threeSumClosest(vector<int>& nums, int target) 7 { 8 int n = nums.si ...
分类:
其他好文 时间:
2020-03-15 18:55:39
阅读次数:
55
蝇量 蝇量模式:如果让某个类的一个实例能用来提供许多“虚拟实例”,就使用蝇量模式。 在一个设计房子的平台中,周围要加上一些树,树有一个坐标XY坐标位置,而且可以根据树的年龄动态将自己绘制出来。如果我们创建许多树之后,会有许多树的实例对象。使用一个树实例和一个客户对象来维护“所有”树的状态,这就是蝇量 ...
分类:
其他好文 时间:
2020-03-15 13:27:09
阅读次数:
47