摘要: 二维数组中的查找替换空格 阅读全文
posted @ 2019-03-26 17:41 strawqqhat 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 题目描述请实现一个函数,将一个字符串中的每个空格替换成“%20”。例如,当字符串为We Are Happy.则经过替换之后的字符串为We%20Are%20Happy。class Solution {public: void replaceSpace(char *str... 阅读全文
posted @ 2019-03-26 17:40 strawqqhat 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 题目描述在一个二维数组中(每个一维数组的长度相同),每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。class Solution {public: bool Fi... 阅读全文
posted @ 2019-03-26 14:53 strawqqhat 阅读(81) 评论(0) 推荐(0) 编辑
摘要: public ListNode deleteDuplication(ListNode pHead){ //LinkedHashMap可以按照输入的顺序进行输出 LinkedHashMap map = new LinkedHashMap(); ListNode c... 阅读全文
posted @ 2019-03-26 14:15 strawqqhat 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 今天去面试的时候碰到了这个问题:String str = new String("abc"); 创建了几个对象,回来自己研究并查阅资料才发现答错了。。网上的争论不少,有的说是两个,答案应该是:两个或一个理由解释如下:都了解java 的字符串常量缓冲区(字符串池,字符串... 阅读全文
posted @ 2019-03-26 13:58 strawqqhat 阅读(175) 评论(0) 推荐(0) 编辑
摘要: List接口一共有三个实现类,分别是ArrayList、Vector和LinkedList。List用于存放多个元素,能够维护元素的次序,并且允许元素的重复。 3个具体实现类的相关区别如下:ArrayList是最常用的List实现类,内部是通过数组实现的... 阅读全文
posted @ 2019-03-26 13:56 strawqqhat 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 1、什么是分库分表?顾名思义,即把存于一个库的数据分散到多个库中,把存于一个表的数据分散到多个表中。2、什么情况下需要分库分表?当一个数据库被创建之后,随着时间的推移和业务量的增加,数据库中表以及表中的数据量就会越来越多,就有可能出现两种弊端:(1)数据库的存储资源是... 阅读全文
posted @ 2019-03-26 13:48 strawqqhat 阅读(598) 评论(0) 推荐(0) 编辑
摘要: 内存溢出: 是指程序在申请内存时,没有足够的内存空间供其使用,出现out of memory;比如申请了一个Integer,但给他存了long才能存下的数,那就是内存溢出。内存泄漏: 是指程序在申请内存后,无法释放已申请的内存空间,一次内存泄漏危害可以忽略... 阅读全文
posted @ 2019-03-26 13:32 strawqqhat 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.nowcoder.com/discuss/142537下午三点视频面:一上来怼jvm和gc1.讲讲jvm运行时数据库区https://blog.csdn.net/strawqqhat/article/details/888078352.讲... 阅读全文
posted @ 2019-03-25 22:47 strawqqhat 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 线程私有的数据区程序计数器: 作用:记录当前线程锁执行到的字节码的行号。字节码解释器工作的时候就是通过改变你这个计数器的值来选取下一条需要执行的字节码指令。 意义:JVM的多线程是通过线程轮流切换并分配处理器来实现的,对于我们来说的并行事实上一个处理器也只... 阅读全文
posted @ 2019-03-25 22:44 strawqqhat 阅读(145) 评论(0) 推荐(0) 编辑
#home h1{ font-size:45px; } body{ background-image: url("放你的背景图链接"); background-position: initial; background-size: cover; background-repeat: no-repeat; background-attachment: fixed; background-origin: initial; background-clip: initial; height:100%; width:100%; } #home{ opacity:0.7; } .wall{ position: fixed; top: 0; left: 0; bottom: 0; right: 0; } div#midground{ background: url("https://i.postimg.cc/PP5GtGtM/midground.png"); z-index: -1; -webkit-animation: cc 200s linear infinite; -moz-animation: cc 200s linear infinite; -o-animation: cc 200s linear infinite; animation: cc 200s linear infinite; } div#foreground{ background: url("https://i.postimg.cc/z3jZZD1B/foreground.png"); z-index: -2; -webkit-animation: cc 253s linear infinite; -o-animation: cc 253s linear infinite; -moz-animation: cc 253s linear infinite; animation: cc 253s linear infinite; } div#top{ background: url("https://i.postimg.cc/PP5GtGtM/midground.png"); z-index: -4; -webkit-animation: da 200s linear infinite; -o-animation: da 200s linear infinite; animation: da 200s linear infinite; } @-webkit-keyframes cc { from{ background-position: 0 0; transform: translateY(10px); } to{ background-position: 600% 0; } } @-o-keyframes cc { from{ background-position: 0 0; transform: translateY(10px); } to{ background-position: 600% 0; } } @-moz-keyframes cc { from{ background-position: 0 0; transform: translateY(10px); } to{ background-position: 600% 0; } } @keyframes cc { 0%{ background-position: 0 0; } 100%{ background-position: 600% 0; } } @keyframes da { 0%{ background-position: 0 0; } 100%{ background-position: 0 600%; } } @-webkit-keyframes da { 0%{ background-position: 0 0; } 100%{ background-position: 0 600%; } } @-moz-keyframes da { 0%{ background-position: 0 0; } 100%{ background-position: 0 600%; } } @-ms-keyframes da { 0%{ background-position: 0 0; } 100%{ background-position: 0 600%; } }