LC148 two-sum 题意:数组中找出两个加起来等于目标值的数 题解:unordered存值对应下标,注意相同数的特判 LC147 median-of-two-sorted-arrays 题意:两个有序数组中位数 题解:Kth(A,m,B,n,k),若m>n交换,pa=min(k/2,m),p ...
分类:
其他好文 时间:
2020-07-10 15:23:31
阅读次数:
60
1.通过关联的class样式属性写好css样式 .anim-order{ animation-duration: 500ms; animation-name: addInOrder; animation-timing-function: ease-in-out; } .anim-car{ anima ...
分类:
其他好文 时间:
2020-07-10 15:08:02
阅读次数:
65
PCA:主成分分析-Python实现,X:[2500,784],把X降到50维 1 def pca(X=np.array([]), no_dims=50): 2 """ 3 Runs PCA on the NxD array X in order to reduce its dimensionali ...
分类:
编程语言 时间:
2020-07-10 13:39:47
阅读次数:
113
代码: https://files.cnblogs.com/files/cx2016/effective-java-3e-source-code.zip 1. 总之,静态工厂方法和公共构造方法都有它们的用途,并且了解它们的相对优点是值得的。通常,静态工厂更可取,因此避免在没有考虑静态工厂的情况下提供 ...
分类:
编程语言 时间:
2020-07-10 13:38:34
阅读次数:
69
select * from show_center.biz_show where show_Name like '%黑小鸭%' order by update_time desc limit 10; select * from show_center.std_show where show_Name ...
分类:
其他好文 时间:
2020-07-10 13:08:57
阅读次数:
72
JSON (JavaScript Object Notation) 是一种轻量级的数据交换格式。它基于ECMAScript的一个子集。 Python3 中可以使用 json 模块来对 JSON 数据进行编解码,它包含了两个函数: json.dumps(): 对数据进行编码。 json.loads() ...
分类:
编程语言 时间:
2020-07-10 11:35:51
阅读次数:
59
1.设计html编码如下: 1 <!DOCTYPE html> 2 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 <head runat="server"> 5 <meta http-equiv="Content-Type" content="tex ...
分类:
Web程序 时间:
2020-07-10 11:21:58
阅读次数:
275
Given an n-ary tree, return the level order traversal of its nodes' values. Nary-Tree input serialization is represented in their level order traversa ...
分类:
其他好文 时间:
2020-07-10 11:20:42
阅读次数:
63
Given a binary tree, write a function to get the maximum width of the given tree. The width of a tree is the maximum width among all levels. The binar ...
分类:
其他好文 时间:
2020-07-10 10:07:44
阅读次数:
60
1. 模拟调用一个服务的多个实例 我们现在有两个服务, 一个getway服务, 另一个是order服务. 使用的是nacos管理配置文件和服务注册中心 假如我现在product服务要调用order服务. product服务有1台, order服务有3台. 那么是如何实现负载均衡的呢? 下面我们来模拟 ...
分类:
其他好文 时间:
2020-07-10 10:00:23
阅读次数:
76