528. Random Pick with Weight 根据weight随机选取一个数,用 Prefix Sum+Binary Search 来解决。 https://www.geeksforgeeks.org/random-number-generator-in-arbitrary-probab ...
分类:
移动开发 时间:
2019-09-08 09:49:02
阅读次数:
139
标准和模型、怪异盒模型;(IE盒模型content包含了 border和padding)。 css实现圆角box-radius ,阴影(box-shadow) ; 对文字加特效,text-shadow,线性渐变,(gradient),旋转(transform); transfrom:rotate(9 ...
分类:
其他好文 时间:
2019-09-07 01:31:30
阅读次数:
103
/** * @Title: main * @Description: TODO(经纬度根据获取折线的平行线) * @param list 平行线 * @param angle (公里数)距离真实线范围 经纬度大概按照0.0011为100米进行计算 * @return List<Double[]> 平 ...
分类:
其他好文 时间:
2019-09-06 13:15:45
阅读次数:
110
Transform字面上就是变形,改变的意思。在CSS3中transform主要包括以下几种:旋转rotate、扭曲skew、缩放scale和移动translate以及矩阵变形matrix。 语法: none:表示不进么变换;<transform-function>表示一个或多个变换函数,以空格分开 ...
分类:
Web程序 时间:
2019-09-04 10:07:45
阅读次数:
119
Problem Description 给定三个数 $k,pa,pb$ ,每次有 $\frac{pa}{pa+pb}$ 的概率往后面添加一个 ,有 $\frac{pb}{pa+pb}$ 的概率往后面添加一个 ,当出现了 $k$ 个形如 的子序列(不用连续)时停止。 求最后子序列 的期望个数。 答案对 ...
分类:
其他好文 时间:
2019-09-01 17:00:19
阅读次数:
67
Ubuntu18.04系统执行gnuradio-companion时,命令行提示错误Failed to load module "canberra-gtk-module",虽然看起来不影响使用,但是总觉得别扭。 解决办法:命令行输入: ...
分类:
系统相关 时间:
2019-08-29 13:55:56
阅读次数:
113
Given a list, rotate the list to the right by k places, where k is non-negative. For example:Given 1->2->3->4->5->NULL and k = 2,return 4->5->1->2->3- ...
分类:
其他好文 时间:
2019-08-27 23:31:47
阅读次数:
154
Description: We are given two strings, A and B. A shift on A consists of taking string A and moving the leftmost character to the rightmost position. ...
分类:
其他好文 时间:
2019-08-26 00:27:18
阅读次数:
63
tomcat-rotate.sh: #!/bin/bash log_path="/home/tomcat7-api/logs/"expried_time=7 function delete_log() { local currentDate=`date +%s` for file in find $ ...
分类:
系统相关 时间:
2019-08-24 19:00:01
阅读次数:
105
"题目" 旋转二维数组,还挺有意思的。 class Solution { public: void rotate(vector & matrix) { for(int i=0;i ...
分类:
其他好文 时间:
2019-08-24 13:28:51
阅读次数:
66