热门 最新 精选 话题 上榜
适配器模式(Adapter Pattern):将一个接口转换成客户希望的另一个接口,使接口不兼容的那些类可以一起工作,其别名为包装器(Wrap
Given an integer, return its base 7 string representation.Example 1: Input: 100 Output: “202” Example 2: Input: -7 Output: “-10” Note: The input will be in range of [-1e7, 1e7].题意很简单,就是做一个7进制的数据
原创 1天前
31阅读
Given a b
原创 1天前
39阅读
You are given an array of positive and negative integers. If a number n at an index is positive, then move forward n steps. Conversely, if it’s negative (-n), move backward n steps. Assume the first e
原创 1天前
33阅读
Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ timajority element alwa...
原创 1天前
34阅读
We define a harmonious array is an array where the difference between its maximum value
原创 1天前
35阅读
Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation.Note: The given integer is guaranteed to fit within the range of a 3...
原创 1天前
22阅读
Given a non-empty array of numbers, a0, a1, a2, … , an-1, where 0 ≤ ai < 231.Find the maximum result of ai XOR aj, where 0 ≤ i, j < n.Could you do this in O(n) runtime?Example:Input: [3, 10, 5,
原创 1天前
17阅读
Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest pos
原创 1天前
21阅读
Given a string that c
Given n poi
原创 1天前
15阅读
第K大数这个是借助快速排序来做的,是快排的一个变形代码如下#include <iostream>#include <vector>#include <map>#include <unordered_map>#include <set>#include &
原创 1天前
18阅读
7.1 死锁特征7.1.1存在资源一次只能让一个进程使用占有并等待:一个进程至少占用一个资源,并等待另一个资源非抢占:资源是非抢占的...
FCFS:先来先服务算法: 按请求者的先后次
原创 1天前
18阅读
操作系统概念 --- 读书笔记 第12章:磁盘调度
问题是什么?就是求解两个字符串的最长的公共子序列,这是一个经典的DP动态规划问题代码如下#include <iostream>#include <vector>#include <map>#include <unordered_map>#include <set>
快速排序思路是这样的,找到一个key然后对数组做遍历比key小的都放到key的左边,比key大的都在key的右边,然后依次递归即可代码如下#include <iostream> #include <vector> #include <map> #include <unordered_map> #include <set> #include
原创 1天前
19阅读
最近做了一个小工具,在用户授权的情况下,可以爬取用户的证券账户数据1. 券商账户自动登陆,验证码自动识别,自动填充密码2.
Google tile和TMS的索引算法TMS是tile map service的缩写,是一种瓦片地图服务,也称之为WMTS(web map tile service),具体的标准可以见OGC网站。TMS的算法很简单,就是把投影后的世界地图按照层级进行四叉树(待验证)切割,切割后的瓦片数量随层级呈金字塔型,数量和层级关系如下表所示:01 tile covers whole world1 tile1
1、冒泡排序、选择排序、插入排序:an excellent article fromHe makes these all so easy. 2、快速排序: 3、归并排序4、希尔排序
由于里面的大部分内容和代码都是摘自《python3》书中以及查资料所得,故为转载前面部分是知识点,后面附所
VoltDB是一个宣称性能超过Mysql 100倍的新型数据库。它源自Micheal Stonebraker一篇论文H-Store。在这篇论文发表后,Stonebraker成立了VoltDB公司带着他的一些学生开始在OLTP数据库领域打拼。Stonebraker从上世纪70年代——数据库刚开始发展的时间——就开始在数据库领域活跃,这样的老古董提出的数据库的新想法,给了整个存储领域很大的想象空间。V
原创 1天前
42阅读
<!--v/:* {behavior:url(#default#VML);}o/:* {behavior:url(#default#VML);}w/:* {behavior:url(#default#VML);}.shape {behavior:url
原创 1天前
44阅读
Eclipse 3.6 M7(太阳神版)发布
1
况、GC执行情况、CPU消耗以及类的装载情况。 Java开
转载
4k
1天前
27阅读
visualvm监控jvm及远程jvm监控方法
python
转载
4k
1天前
25阅读
 随着互联网的快速发展,数据已经成为许多行业中的重要资源。网络爬虫作为一种数据采集工具,在许多领域中得到了广泛应用。但是现在很多网站都有非常多的限制,所以在爬取数据的时候,还需要借助代理ip来助力,才能更好的完成任务。 一、爬虫数据采集需要什么样的代理ip  不同的爬虫业务需要不同的代理IP,在选择代理IP的时候需要根据自己的业务需求来考虑,很多人不知道爬虫采集数据需要什么样
原创 1天前
61阅读
KMP是什么
部分,考虑到初始化List对象在循环外,List添加的是对象的引用,Test只被new了一次然后不断被赋值,所以最后只能写入最
原创 1天前
45阅读
快排模板
原创 1天前
56阅读