码迷,mamicode.com
首页 >  
搜索关键字:heap space    ( 20988个结果
TCMalloc 内存分配原理简析
一、TCMalloc TCMalloc简介 为啥要介绍 TCMalloc? 因为golang的内存分配算法绝大部分都是来自 TCMalloc,golang只改动了其中的一小部分。所以要理解golang内存分配算法,就要先了解下TCMalloc,为后面分析golang内存做一做功课。 tcmalloc ...
分类:其他好文   时间:2020-10-26 10:35:14    阅读次数:27
Dockerfile Security Best Practice
Reference: [Dockerfile Security Best Practices] Container security is a broad problem space and there are many low hanging fruits one can harvest to m ...
分类:其他好文   时间:2020-10-24 11:48:16    阅读次数:37
P1094 纪念品分组
题目描述 元旦快到了,校学生会让乐乐负责新年晚会的纪念品发放工作。为使得参加晚会的同学所获得 的纪念品价值相对均衡,他要把购来的纪念品根据价格进行分组,但每组最多只能包括两件纪念品, 并且每组纪念品的价格之和不能超过一个给定的整数。为了保证在尽量短的时间内发完所有纪念品,乐乐希望分组的数目最少。 你 ...
分类:其他好文   时间:2020-10-24 09:47:09    阅读次数:20
Understanding about Baire Category Theorem
Definition (Nowhere dense set) A set $A$ in a topological space $X$ is nowhere dense if the complement of its closure is dense in $X$, i.e. $\overline ...
分类:其他好文   时间:2020-10-22 22:47:57    阅读次数:24
Spring Cloud Zuul 服务网关(核心过滤器)
写在前面 本文参考以下文章,请参考原文 Spring Cloud源码分析(四)Zuul:核心过滤器 Spring Cloud Zuul :包含对请求的路由和过滤两个功能 路由功能负责将外部请求转发到具体的微服务实例上,是实现外部访问统一入口的基础 过滤器功能则负责对请求的处理过程进行干预,是实现请求 ...
分类:编程语言   时间:2020-10-21 21:14:56    阅读次数:32
python案例 - 求解一元二次方程
请定义一个函数quadratic(a, b, c),接收3个参数,返回一元二次方程 ax^2+bx+c=0ax2+bx+c=0 的两个解。 提示: 一元二次方程的求根公式为: 计算平方根可以调用math.sqrt()函数: #!/usr/bin/env python3 import math def ...
分类:编程语言   时间:2020-10-20 16:27:52    阅读次数:35
欧拉之路
Prime digit replacements 枚举每一位放数字还是放未知的,如果为止的就拿1代替单独存 因为要有8个,所以我们可知未知的一定是三的倍数,末尾一定是1,3,7,然后暴力搞一搞(剪枝跑得飞快) 1 #include<bits/stdc++.h> 2 #define reg regis ...
分类:其他好文   时间:2020-10-19 22:57:02    阅读次数:18
CF1092F Tree with Maximum Cost
Link 题意描述: 有一棵 \(n\) 个节点的树,每个点有一个权值 \(a_i\)。 定义 \(\operatorname{dist}(u,v)\) 为 \(u,v\) 两点间距离。 您要找到一个点 \(u\),使得 \(\displaystyle\sum_{i=1}^n\operatornam ...
分类:其他好文   时间:2020-10-18 16:13:43    阅读次数:19
codeforces 868C - Qualification Rounds (思维)
题目链接:https://codeforces.com/problemset/problem/868/C 如果有方案,那么肯定可以用两道题目完成 这是证明 #include<cstdio> #include<cstring> #include<algorithm> #include<iostream ...
分类:其他好文   时间:2020-10-18 10:20:12    阅读次数:30
151. Reverse Words in a String翻转一句话中的单词
Given an input string s, reverse the order of the words. A word is defined as a sequence of non-space characters. The words in s will be separated by ...
分类:其他好文   时间:2020-10-18 10:19:49    阅读次数:29
20988条   上一页 1 ... 31 32 33 34 35 ... 2099 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!