题目如下: Given an array arr, replace every element in that array with the greatest element among the elements to its right, and replace the last element ...
分类:
其他好文 时间:
2019-12-29 10:52:14
阅读次数:
76
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv ...
分类:
其他好文 时间:
2019-12-28 21:09:08
阅读次数:
75
DOM,即文档对象模型,是W3C组织推荐的处理可扩展置标语言的标准编程接口。它是一种与平台和语言无关的应用程序接口(API),它可以动态地访问程序和脚本,更新其内容、结构和www文档的风格,DOM的重要性不言而喻,今天我们就来学习一下JavaScript中DOM的操作方法。 DOM的增加 DOM操作 ...
分类:
编程语言 时间:
2019-12-27 19:51:20
阅读次数:
77
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #define ERROR 0 #define OK 1 typedef struct Stack { int *elements; int max_size, top_index; ...
分类:
其他好文 时间:
2019-12-27 13:19:25
阅读次数:
64
题目描述 Leetcode 84 给定 n 个正整数的列表,表示矩形的高度,表示直方图。每一个给出的矩形宽度是 1,找到在直方图里最大的矩形面积。 如图中给出的直方图,宽度是 1,给出的高度是 . 可以在直方图中找出最大的隐藏面积,答案是 10. 题目分析 解法一: 最后矩形的最大面积,肯定是以某个 ...
分类:
其他好文 时间:
2019-12-26 11:14:42
阅读次数:
99
xpath可以以标签定位,也可以@任意属性: 如:以input标签定位:driver.find_element_by_xpath("//input[@id='kw']") 如:@type属性:driver.find_elements_by_xpath("//input[@type='text']") ...
分类:
其他好文 时间:
2019-12-20 13:50:05
阅读次数:
232
点击全选下面单独的肉也会全选,再次点击取消 一个一个点击肉,点完--全选也会被选上 HTML代码 CSS略 <table> <tr> <th> <input type="checkbox" id="checkAll" /> 全选/全不选 </th> <th>名字</th> <th>店铺</th> < ...
分类:
Web程序 时间:
2019-12-19 23:10:51
阅读次数:
101
Problem Statement Given an integer array of size n, find all elements that appear more than ? n/3 ? times. Note: The algorithm should run in linear ti ...
分类:
其他好文 时间:
2019-12-18 14:53:18
阅读次数:
76
内网IP调整引发的Chrome历史记录修改及ShadowRoot的学习 由于IP经常变动, 导致本地项目的那些存在地址栏的历史记录就都失效了, 突然脑洞大开, 有没有办法修改本地历史记录的方法? 想法是: 假设我原IP是192.168.1.51, 新IP是192.168.1.63, 我历史记录有ht ...
分类:
其他好文 时间:
2019-12-16 19:17:01
阅读次数:
364
Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array whic ...
分类:
其他好文 时间:
2019-12-15 00:47:24
阅读次数:
67