问题: 替换当前元素为,当前元素以后元素的最大值。 最后一个元素替换为-1。 Example 1: Input: arr = [17,18,5,4,6,1] Output: [18,6,6,6,1,-1] Constraints: 1 <= arr.length <= 10^4 1 <= arr[i ...
分类:
其他好文 时间:
2020-06-29 15:26:30
阅读次数:
63
// 树根 function Tree(data,left,right) { this.data = data this.left = left this.right = right this.leftNode = Tree.leftNode this.rightNode = Tree.rightN ...
分类:
其他好文 时间:
2020-06-29 13:49:39
阅读次数:
56
浮动的作用 包围文本 横向排列(因为行块盒会空白折叠) 浮动的特点 修改float属性 left 左浮动 上左 right 右浮动 上右 默认为none 1.一个元素浮动以后,必定是块盒。 2.浮动元素的包含块,为父元素的内容盒。 盒子尺寸 1.宽度为auto时,适应内容宽度。常规流时,撑满内容盒。 ...
分类:
Web程序 时间:
2020-06-29 13:49:07
阅读次数:
53
#include<iostream> #include<cmath> #include<vector> #include<stack> #include<queue> using namespace std; struct Node { Node* next; int val; Node() {}; ...
分类:
其他好文 时间:
2020-06-29 13:29:53
阅读次数:
43
1.简介 2.node 安装 http://nodejs.cn/download/ 下载安装,一路next就可以了 安装完成后检测 这样就代表node安装完成 3.安装react官方脚手架工具 npm instsall -g create-react-app 用react脚手架创建一个项目目录 创建 ...
分类:
其他好文 时间:
2020-06-29 09:57:20
阅读次数:
51
###反转链表 class ListNode { int val; ListNode next; ListNode(int x) { val = x; } } public class LeetCodeReverseListNode { public static void main(String[ ...
分类:
编程语言 时间:
2020-06-29 00:41:42
阅读次数:
101
代码: dataZoom: [ { type: 'slider', show: true, xAxisIndex: [0], handleSize: 20,//滑动条的 左右2个滑动条的大小 height: 8,//组件高度 left: 30, //左边的距离 right: 40,//右边的距离 b ...
分类:
其他好文 时间:
2020-06-29 00:39:11
阅读次数:
192
1 Position Find(BinTree BST, ElementType X) { 2 if (!BST) return NULL;//查找失败 3 if (X > BST->Data) return Find(X, BST->Right);//在右子树中继续 4 else if (X < ...
分类:
其他好文 时间:
2020-06-29 00:32:28
阅读次数:
93
HPA:高攻放, SCPC(Single Channel Per Carrier),中文意思为单路单载波LHCP:left-hand circularly polarized 左旋圆极化RHCP:right-hand circularly polarized 右旋圆极化 ...
分类:
其他好文 时间:
2020-06-28 22:38:26
阅读次数:
187
#include<stdio.h> #include<malloc.h> typedef char ElemType; typedef struct LinkNode { ElemType data; struct LinkNode *next; }LinkNode; typedef struct ...
分类:
其他好文 时间:
2020-06-28 22:35:36
阅读次数:
58