自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(22)
  • 收藏
  • 关注

原创 a.active 和 a:active的区别

a.active 是对class=active的a标签生效,a:active 是对按下的a标签生效

2020-10-12 07:38:12 1498

原创 利用xpath读取XML文件,返回为空?

xpath会把所有的大写转换为小写,如果标签名字中含有大写字母,在xpath的查找路径中应该改为小写。例如我想查找<Totalentries>250</Totalentries>这个标签里面的内容,xpath定位应该这样写:Totalentries = tree.xpath('//totalentries/text()')...

2020-06-09 12:36:10 250

原创 JAVA基础

可以通俗理解为E-R模型能够更好的去帮助我们去分析创建关系数据库中的所需的表一、那么什么是E-R模型? E-R模型即实体-联系模型,E-R模型的提出基于这样一种认识,数据库总是存储现实世界中有意义的数据,而现实世界是由一组实体和实体的联系组,E-R模型可以成功描述数据库所存储的数据。二、为什么要设计E-R模型? 设计E-R模型能够更有效和更好的模拟现实世界。三、E-R模型的基本...

2020-01-24 04:15:48 677

原创 JAVA基础

第一题表示数据库的概念模型使用( )? E-R图第二题DDL:数据库模式定义语言,关键字:create DML:数据操纵语言,关键字:Insert、delete、update DCL:数据库控制语言 ,关键字:grant、removeDQL:数据库查询语言,关键字:select第三题在SQL中,与HAVING搭配使用的是()。 group by 。 因为having表示一个...

2020-01-23 07:32:00 390

原创 面经集合

https://www.nowcoder.com/discuss/363312?type=2&order=1&pos=6&page=1在浏览器地址栏输入一个URL后回车,背后会进行哪些技术步骤?第一步是浏览器对用户输入的网址做初步的格式化检查:用http还是https?默认是http。第二步,查找DNS。比如zhihu.com,DNS负责把zhihu....

2020-01-21 04:01:23 123

原创 JAVA基础

1.java和c++的区别 编译形语言和解释形语言像C、C++ 他们经过一次编译之后直接可以编译成操作系统了解的类型,可以直接执行的,所以他们是编译型的语言。没有经过第二次的处理。而Java不一样,他首先由编译器编译成.class类型的文件,这个是java自己类型的文件 然后在通过虚拟机(JVM)从.class文件中读一行解释执行一行,所以他是解释型的语言,而由于java对于多种不同的操作系...

2020-01-17 14:30:29 139

原创 Duckie Town 安装Doker git shell

http://docs.duckietown.org/DT18/AIDO/out/cm_sw.html

2018-12-23 01:37:46 272

原创 Ubuntu如何通过主机代理上网

https://blog.csdn.net/u012267725/article/details/77411161

2018-12-23 01:36:04 1177

原创 Ubuntu虚拟机如何与主机复制粘贴?

安装Vmware Toolshttps://blog.csdn.net/zxf1242652895/article/details/78203473

2018-12-23 01:31:44 11519

原创 91. Decode Ways

 A message containing letters from A-Z is being encoded to numbers using the following mapping:'A' -&gt; 1'B' -&gt; 2...'Z' -&gt; 26Given a non-empty string containing only digits, determin...

2018-07-23 21:40:36 111

原创 817. Linked List Components

  We are given head, the head node of a linked list containing unique integer values.We are also given the list G, a subset of the values in the linked list.Return the number of connected comp...

2018-07-21 00:14:02 99

原创 725. Split Linked List in Parts

Given a (singly) linked list with head node root, write a function to split the linked list into k consecutive linked list "parts".The length of each part should be as equal as possible: no two part...

2018-07-20 23:52:13 86

原创 430. Flatten a Multilevel Doubly Linked List

 You are given a doubly linked list which in addition to the next and previous pointers, it could have a child pointer, which may or may not point to a separate doubly linked list. These child lists...

2018-07-20 15:49:35 547

原创 328. Odd Even Linked List

 Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the value in the nodes.You should try to do it i...

2018-07-20 15:25:51 94

原创 237. Delete Node in a Linked List

Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Given linked list -- head = [4,5,1,9], which looks like following: 4 -&gt; 5 -&gt; 1...

2018-07-20 14:52:40 66

原创 206. Reverse Linked List

1.iteratively(迭代)迭代是不停的重复,其目的通常是为了逼近所需目标或结果。每一次对过程的重复称为一次“迭代”,而每一次迭代得到的结果会作为下一次迭代的初始值。2.recursively(递归)一个过程或函数在其定义或说明中有直接或间接调用自身的一种方法。迭代方法:// Recursiveclass Solution {public: ListNode...

2018-07-19 20:06:26 90

原创 一个很用心的博客,解析很全面【LeetCode】

https://www.cnblogs.com/grandyang/p/4606334.html

2018-07-19 19:31:34 187

原创 160. Intersection of Two Linked Lists

 Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists:A: a1 → a2 ↘ ...

2018-07-19 19:28:05 85

原创 148. Sort List

 Sort a linked list in O(n log n) time using constant space complexity.Example 1:Input: 4-&gt;2-&gt;1-&gt;3Output: 1-&gt;2-&gt;3-&gt;4Example 2:Input: -1-&gt;5-&gt;3-&gt;4-&gt;0Output: ...

2018-07-19 18:48:38 111

原创 143. Reorder List

 Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…You may not modify the values in the list's nodes, only nodes itself may be changed.Example 1:Given 1-&gt...

2018-07-18 16:56:00 71

原创 判断链表中环的起点

第一步:判断有没有环?快慢指针同时指向链表头部,快指针每次指向后序的后序,慢指针每次指向后序,如果快指针追上了慢指针,那么表示存在环。第二步:找到环的起点假设a为进入环之前的路程,b为慢指针在环上走的路程,x为环的周长。那么,慢指针在环上距离起点的长度为:b%x快指针所走过的总路程的:2(a+b)快指针距离起点的长度为:[2(a+b)-a]%x因为快指针最终追上了慢...

2018-07-18 15:20:36 560

原创 109. Convert Sorted List to Binary Search Tree

Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.For this problem, a height-balanced binary tree is defined as a binary tree in which the de...

2018-07-13 15:27:36 114

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除