输入一个链表,输出该链表中倒数第k个结点。 ...
分类:
其他好文 时间:
2019-08-05 20:34:50
阅读次数:
122
"反转链表 leetcode206" 方法1 循环 ··· public ListNode reverseList(ListNode head) { if (head == null || head.next == null) { return head; } ListNode now = head ...
分类:
其他好文 时间:
2019-08-03 00:17:31
阅读次数:
103
探究HashMap的链表转红黑树的具体时机之HashMap的源码解析。 ...
分类:
其他好文 时间:
2019-08-01 14:44:29
阅读次数:
93
栈:是一个后进先出(LIFO)的容器 栈 push()方法在栈中添加元素,用Pop()方法获取最近添加的元素。 于Queue<T>类相似,Stack<T>类实现IEnumerable<T>和ICollection接口 Count 返回栈中的元素个数 Push 在栈顶添加一个元素 Pop 从站定删除一 ...
if(flag==0){ var p = document.createElement("p"); var text_p = document.createTextNode("还没有账号0?"); p.setAttribute("class","p-rj"); p.setAttribute("id" ...
分类:
Web程序 时间:
2019-07-28 13:48:19
阅读次数:
169
#include using namespace std; //链表的定义 struct ListNode { int val; ListNode* next; ListNode(int n) :val(n), next(nullptr) {} }; //链表的打印 void printList(L... ...
分类:
其他好文 时间:
2019-07-27 23:42:30
阅读次数:
110
上文中的oo0OOl应该就是控件的基类。可以对照miniuiAPI文档中的Control。 然后许多控件是从Control类去继承。也可能有其他中间类。以mini-button为例: 这是组织mini-button构造函数的地方。mini-button的构造函数继承自oo0OOl。为什么说lolO0 ...
分类:
其他好文 时间:
2019-07-25 23:51:30
阅读次数:
241
一、Document类型 document实例1、常用的一些属性documentElement 始终指向HTML页面中的<html>元素。body 直接指向<body>元素title 获取文档的标题images 获取所有的img对象 【返回类数组对象】forms 获取所有的form对象 【返回类数组 ...
分类:
Web程序 时间:
2019-07-20 21:21:28
阅读次数:
152