码迷,mamicode.com
首页 >  
搜索关键字:indices    ( 788个结果
leetcode
1、Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input wou ...
分类:其他好文   时间:2018-08-23 16:52:04    阅读次数:190
tf.reduce_mean
tf.reduce_mean reduce_mean( input_tensor, axis=None, keep_dims=False, name=None, reduction_indices=None ) 功能说明: 计算张量 input_tensor 平均值 参数列表: 参数名必选类型说明 ...
分类:其他好文   时间:2018-08-23 13:13:55    阅读次数:162
Codeforces ECR47F Dominant Indices(线段树合并)
一个比较显然的做法:对每棵子树用线段树维护其中的深度,线段树合并即可。 本来想用这个题学一下dsu on tree,结果还是弃疗了。 ...
分类:其他好文   时间:2018-08-19 21:58:34    阅读次数:119
[LeetCode] 1. Two Sum_Easy tag: Hash Table
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex ...
分类:其他好文   时间:2018-08-10 13:14:34    阅读次数:124
Leetcode 1. Two Sum (Easy)
Description Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input w ...
分类:其他好文   时间:2018-08-05 10:29:34    阅读次数:134
Codeforces 1009F Dominant Indices
另类解法 将每一个节点拥有的各深度节点数量存在vector中,向上返回,这样不会占用过多的内存,以此判断最多节点相应的深度即可,但正常写最后一个数据会T,毕竟一次复制一个节点,相当于复制了(1+2+3+4+...+1e6)次,明显超时,所以特判一下1e6个节点的线性树,就算过了这个题了,,,但这个解 ...
分类:其他好文   时间:2018-07-28 18:19:43    阅读次数:182
[LeetCode] 1. Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex ...
分类:其他好文   时间:2018-07-25 14:34:35    阅读次数:146
336. Palindrome Pairs
问题描述: Given a list of unique words, find all pairs of distinct indices (i, j) in the given list, so that the concatenation of the two words, i.e. word ...
分类:其他好文   时间:2018-07-21 12:15:57    阅读次数:172
Educational Codeforces Round 47 (Rated for Div. 2)F. Dominant Indices 线段树合并
题意:有一棵树,对于每个点求子树中离他深度最多的深度是多少, 题解:线段树合并快如闪电,每个节点开一个权值线段树,递归时合并即可,然后维护区间最多的是哪个权值,到x的深度就是到根的深度减去x到根的深度复杂度O(nlogn) // pragma comment(linker, "/stack:2000 ...
分类:其他好文   时间:2018-07-20 00:17:27    阅读次数:216
elk每日清除30天索引脚本
日常elk产生日志太多,故写个脚本放在定时任务,定时清理脚本查询索引:curl -XGET 'http://127.0.0.1:9200/_cat/indices/?v'删除索引:curl -XDELETE 'http://127.0.0.1:9200/索引名字'定时删除30天前的索引#!/bin/bash #定时清除elk索
分类:其他好文   时间:2018-07-18 20:40:52    阅读次数:362
788条   上一页 1 ... 15 16 17 18 19 ... 79 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!