摘要:
数组是线性结构,可以直接索引,即要去第i个元素,a[i]即可。链表也是线性结构,要取第i个元素,只需用指针往后遍历i次就可。貌似链表比数组还要麻烦些,而且效率低些。 想到这些相同处中的一些细微的不同处,于是他们的真正不同处渐渐显现了:链表的效率为何比数组低些?先从两者的初始化开始。数组无需初始化,因 阅读全文
posted @ 2018-09-25 18:18
fleam
阅读(156)
评论(0)
推荐(0)
摘要:
https://blog.csdn.net/Jae_Peng/article/details/79562432 阅读全文
posted @ 2018-09-25 17:46
fleam
阅读(90)
评论(0)
推荐(0)
摘要:
之前在开发中,就总纳闷,为什么继承接口时,会出现@Override注解,有时候还会提示写注解@SuppressWarnings? 原来这是java特有的特性,注解! 那么什么是注解呢? 注解就是某种注解类型的一个实例,我们可以用它在某个类上进行标注,这样编译器在编译我们的文件时,会根据我们自己设定的 阅读全文
posted @ 2018-09-25 15:52
fleam
阅读(131)
评论(0)
推荐(0)
摘要:
package test; public class myTest { // 根据输入的参数动态生成数组 public static int max(int... param) { int max = 0; int length = param.length; for (int i = 0; i < length; i++) { ... 阅读全文
posted @ 2018-09-25 15:09
fleam
阅读(1511)
评论(0)
推荐(0)
摘要:
DROP删表,表结构将删了,当然数据也不存在了 TRUNCATE和DELETE删数据,表结构还在 DELETE可以带条件删除,TRUNCATE是全部删除 DELETE删除会写日志,TRUNCATE不写 DELETE效率低,数据可以恢复,TRUNCATE效率高,数据不可恢复 如果指定参照完整性的删除规则为“级联”,则当删除父表中的记录时(C)。 A. 系统自动备份父表中被删除记录到一个新表中 B.... 阅读全文
posted @ 2018-09-25 11:31
fleam
阅读(150)
评论(0)
推荐(0)
摘要:
附(转载):https://www.jianshu.com/p/0fe7c60b0ec7 阅读全文
posted @ 2018-09-25 11:30
fleam
阅读(163)
评论(0)
推荐(0)
摘要:
$i; $j--){ if ($array[$j] strlen($str )) return; if (($length!=NULL) && ( $start>0) && ($length> strlen($str)-$start)) return; if (( $length!=NULL) && ($... 阅读全文
posted @ 2018-09-25 11:28
fleam
阅读(1310)
评论(0)
推荐(0)
摘要:
import java.util.*; public class SetDemo { public static void main(String[] args) { //Set Set set = new HashSet(); set.add("hello"); set.add("java"); ... 阅读全文
posted @ 2018-09-25 11:26
fleam
阅读(228)
评论(0)
推荐(0)
摘要:
$table ); $data = $db->queryAll($sql,$data); foreach ($data as $key=>$value){ $arrays[] = " $".$value['COLUMN_NAME']." = \$_REQUEST['".$value['COLUMN_NAME']."']; "; } $field=impl... 阅读全文
posted @ 2018-09-25 11:25
fleam
阅读(196)
评论(0)
推荐(0)
摘要:
https://blog.csdn.net/weixin_36397925/article/details/79496657 https://blog.csdn.net/forezp/article/details/70148833/ https://github.com/ityouknow/spr 阅读全文
posted @ 2018-09-25 10:30
fleam
阅读(271)
评论(0)
推荐(0)
摘要:
Spring 框架就像一个家族,有众多衍生产品例如 boot、security、jpa等等。但他们的基础都是Spring 的 ioc和 aop ioc 提供了依赖注入的容器 aop ,解决了面向横切面的编程,然后在此两者的基础上实现了其他延伸产品的高级功能。Spring MVC是基于 Servlet 阅读全文
posted @ 2018-09-25 08:54
fleam
阅读(144)
评论(0)
推荐(0)
浙公网安备 33010602011771号