<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[有酒吗]]></title><description><![CDATA[二十余年如一梦]]></description><link>https://blog.csdn.net/qq_36974075</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; qq_36974075]]></copyright><item><title><![CDATA[如何在 goland 中使用 leetcode 插件]]></title><link>https://blog.csdn.net/qq_36974075/article/details/121896050</link><guid>https://blog.csdn.net/qq_36974075/article/details/121896050</guid><author>qq_36974075</author><pubDate>Sun, 12 Dec 2021 23:56:49 +0800</pubDate><description><![CDATA[简介：goland leetcode 插件安装可以提高刷题效率，对于学习算法的同学是个不错的选择
安装使用步骤：


安装插件：
a. 左上角Goland -&gt; Preferences
b. 搜索并 install leetcode editor 插件


安装完，goland 右下角会出现 leetcode 字样，点击进入 leetcode 插件界面，最上面导航栏处，可以选择 “设置”

填写账号名、密码
设置下载题目模板的存储位置(一般可以设置在 go/src 下，这样可以直接在本地测试)，然后导]]></description><category></category></item><item><title><![CDATA[字节跳动笔试题分享]]></title><link>https://blog.csdn.net/qq_36974075/article/details/106434049</link><guid>https://blog.csdn.net/qq_36974075/article/details/106434049</guid><author>qq_36974075</author><pubDate>Fri, 29 May 2020 23:29:43 +0800</pubDate><description><![CDATA[给你一个二叉树，求路径的最大值。
比如 下图，路径最大值为 6，B-D-C-F-E-G-M

求解思路：

假如求经过F点的路径的最大值，则是点 F 左边的深度的最大值 + 右边深度的最大值，可记为 max_node(F) = max_left (F)+max_right(F)
求 max_left(F)，相当于求 max_node©
最终，我们要求的是：max(max_node(F), max_left(F), max_right(F))，可以使用递归函数求解
代码如下，当时是面试时的笔试题，不要求把代码]]></description><category></category></item><item><title><![CDATA[wps使用]]></title><link>https://blog.csdn.net/qq_36974075/article/details/104616473</link><guid>https://blog.csdn.net/qq_36974075/article/details/104616473</guid><author>qq_36974075</author><pubDate>Wed, 18 Mar 2020 17:26:59 +0800</pubDate><description><![CDATA[在左边栏显示目录：点击章节 – 章节导航
更新文中目录页：点击文中目录页的字，右键，选择更新域


]]></description><category></category></item><item><title><![CDATA[论文《Privacy-Preserving Ridge Regression on Hundreds of Millions of Records》梳理]]></title><link>https://blog.csdn.net/qq_36974075/article/details/103280540</link><guid>https://blog.csdn.net/qq_36974075/article/details/103280540</guid><author>qq_36974075</author><pubDate>Sun, 08 Dec 2019 12:51:36 +0800</pubDate><description><![CDATA[术语解释




术语
英语
描述
符号表示




同余类
congruence class / residue class
模 n 同余的所有整数组成的集合
a‾n/[a]{\displaystyle {\overline {a}}_{n}} / [a]an​/[a]


余数系统
residue system
模 n 同余类的代表数的集合



完整余数系统
complete residue...]]></description><category></category></item><item><title><![CDATA[二分查找]]></title><link>https://blog.csdn.net/qq_36974075/article/details/100569417</link><guid>https://blog.csdn.net/qq_36974075/article/details/100569417</guid><author>qq_36974075</author><pubDate>Thu, 05 Sep 2019 23:33:53 +0800</pubDate><description><![CDATA[// return pos
// input: target 为要寻找的数，如果target找到了，则返回位置pos, 否则返回target应该插入的位置
func binarySearch(nums []int, left, right, target int) int{
    
    // 计算中间值
    mid := (left + right) / 2
    if nums[m...]]></description><category></category></item><item><title><![CDATA[leetcode#179 Largest Number]]></title><link>https://blog.csdn.net/qq_36974075/article/details/95396425</link><guid>https://blog.csdn.net/qq_36974075/article/details/95396425</guid><author>qq_36974075</author><pubDate>Wed, 10 Jul 2019 23:32:11 +0800</pubDate><description><![CDATA[将整数转换为字符串，然后排序即可（需自定义排序规则为：s1 + s2 &gt; s2 + s1）
import "strconv"

type newType []string

func (p newType) Len() int {
	return len(p)
}

// 排序规则
func (p newType) Less(i, j int) bool {
    return p[i]...]]></description><category></category></item><item><title><![CDATA[LeetCode #56 Merge Intervals]]></title><link>https://blog.csdn.net/qq_36974075/article/details/95162777</link><guid>https://blog.csdn.net/qq_36974075/article/details/95162777</guid><author>qq_36974075</author><pubDate>Tue, 09 Jul 2019 08:41:04 +0800</pubDate><description><![CDATA[题目链接：https://leetcode.com/problems/merge-intervals/

思路：排序后，遍历一遍数组操作
import "sort"

type myvalue2 [][]int

func (p myvalue2) Len() int {
	return len(p)
}

func (p myvalue2) Less(i, j int) bool {
    i...]]></description><category></category></item><item><title><![CDATA[leetcode #1 Two Sum]]></title><link>https://blog.csdn.net/qq_36974075/article/details/94713637</link><guid>https://blog.csdn.net/qq_36974075/article/details/94713637</guid><author>qq_36974075</author><pubDate>Fri, 05 Jul 2019 08:43:24 +0800</pubDate><description><![CDATA[解决方法：

直接两次循环，两数相加为target则return，时间复杂度 O(n2n^2n2)

func twoSum(nums []int, target int) []int {
    for ai, a:=range nums{
        for bi, b:=range nums[ai+1:]{
            if a+b == target{
         ...]]></description><category></category></item><item><title><![CDATA[go 字符串操作性能 浅析]]></title><link>https://blog.csdn.net/qq_36974075/article/details/93392603</link><guid>https://blog.csdn.net/qq_36974075/article/details/93392603</guid><author>qq_36974075</author><pubDate>Sun, 23 Jun 2019 17:48:16 +0800</pubDate><description><![CDATA[go 性能分析
性能分析函数
// 统计内存，
// Alloc 表示分配的栈内存
// total 表示系统从开始使用的总内存（可能包括被销毁的内存）

func displayMemory(tag string) {
   memStats := runtime.MemStats{}
   runtime.ReadMemStats(&amp;memStats)
   fmt.Printf("[...]]></description><category></category></item><item><title><![CDATA[win10_vs2017_cuda9.1]]></title><link>https://blog.csdn.net/qq_36974075/article/details/88836017</link><guid>https://blog.csdn.net/qq_36974075/article/details/88836017</guid><author>qq_36974075</author><pubDate>Wed, 27 Mar 2019 09:03:00 +0800</pubDate><description><![CDATA[下面我将介绍如何再vs2017中配置cuda项目,  我的显卡型号GeForce GTX 950M，安装前需先确认电脑显卡是否支持cuda9.1

到官网下载cuda toolkit
https://developer.nvidia.com/cuda-91-download-archive?target_os=Windows&amp;target_arch=x86_64&amp;target_ve...]]></description><category></category></item><item><title><![CDATA[C++ usage of priority queue]]></title><link>https://blog.csdn.net/qq_36974075/article/details/87643392</link><guid>https://blog.csdn.net/qq_36974075/article/details/87643392</guid><author>qq_36974075</author><pubDate>Mon, 18 Feb 2019 20:23:26 +0800</pubDate><description><![CDATA[#include &amp;lt;queue&amp;gt;
#include &amp;lt;algorithm&amp;gt;
#include &amp;lt;functional&amp;gt;
#include &amp;lt;iostream&amp;gt;
using namespace std;

struct myps{
    int index;
    int val;
    myps(int x = 1, int y = 2):in...]]></description><category></category></item><item><title><![CDATA[C++ algorithm, the operation of heap]]></title><link>https://blog.csdn.net/qq_36974075/article/details/87641700</link><guid>https://blog.csdn.net/qq_36974075/article/details/87641700</guid><author>qq_36974075</author><pubDate>Mon, 18 Feb 2019 19:57:09 +0800</pubDate><description><![CDATA[	{
		// test heap, 底层以vector完成
		int ia[9] = { 0,1,2,3,4,8,9,3,5 };
		vector&amp;lt;int&amp;gt; ivec(ia, ia + 9);

		make_heap(ivec.begin(), ivec.end());
		for (int i = 0; i &amp;lt; ivec.size(); i++) {
			cout &amp;...]]></description><category></category></item><item><title><![CDATA[STL deque的实现]]></title><link>https://blog.csdn.net/qq_36974075/article/details/86767035</link><guid>https://blog.csdn.net/qq_36974075/article/details/86767035</guid><author>qq_36974075</author><pubDate>Tue, 05 Feb 2019 23:16:47 +0800</pubDate><description><![CDATA[参考自 侯捷, STL源码剖析

class deque definition
deque采用一块所谓的map作为主控，这里的map是一块连续空间，其中每个元素都是一个指针，指向一段（较大的）连续线性空间，称为缓冲区，SGI STL允许我们指定缓冲区大小，默认值0表示将使用512bytes缓冲区。

template&amp;lt;class T, class Alloc=alloc, size_t Bu...]]></description><category></category></item><item><title><![CDATA[C++ list（双向环状链表）的常用操作]]></title><link>https://blog.csdn.net/qq_36974075/article/details/86766858</link><guid>https://blog.csdn.net/qq_36974075/article/details/86766858</guid><author>qq_36974075</author><pubDate>Tue, 05 Feb 2019 22:30:44 +0800</pubDate><description><![CDATA[C++ STL list操作，list采用link存储，参考资料（侯捷，STL源码剖析）

list 使用双向环状链表形式，环状链表只需一个标记，所以可以在链表尾端插入一个空白节点，使之符合STL前闭后开的规范

list的主要操作transfer，移动元素的位置，splice基于transfer实现

// 将[first, last)内的所有元素移动到position之前， .操作符的优先级 ...]]></description><category></category></item><item><title><![CDATA[vscode latex windows10环境配置]]></title><link>https://blog.csdn.net/qq_36974075/article/details/86616097</link><guid>https://blog.csdn.net/qq_36974075/article/details/86616097</guid><author>qq_36974075</author><pubDate>Wed, 23 Jan 2019 19:18:29 +0800</pubDate><description><![CDATA[
下载vscode，并安装插件latex workshop，插件安装位置在左边第五个按钮

下载miktex，根据指导安装即可
在vscode设置中的用户设置中添加内容
（点击界面左下角的齿轮 -&amp;gt; 点击settings -&amp;gt; 进入user settings）

	&quot;latex-workshop.latex.magic.args&quot;: [
     &quot;-shell-escape&quot;,
  ...]]></description><category></category></item><item><title><![CDATA[分布式系统原理（四）]]></title><link>https://blog.csdn.net/qq_36974075/article/details/85850669</link><guid>https://blog.csdn.net/qq_36974075/article/details/85850669</guid><author>qq_36974075</author><pubDate>Sat, 05 Jan 2019 16:57:18 +0800</pubDate><description><![CDATA[通信
同步通信的三种方式：



远程过程调用RPC，信息从客户端到服务器的过程（客户端 -&amp;gt; 客户存根 -&amp;gt; 客户操作系统 -&amp;gt; 服务端操作系统 -&amp;gt; 服务器存根 -&amp;gt; 服务器）

异步RPC的模式：客户接收到服务器的确认消息之后，将不会阻塞，而是继续向下执行




面向消息的通信
瞬时通信


套接字原语						


MPI
持久通信
消息队列模型




...]]></description><category></category></item><item><title><![CDATA[分布式系统原理（三）]]></title><link>https://blog.csdn.net/qq_36974075/article/details/85840912</link><guid>https://blog.csdn.net/qq_36974075/article/details/85840912</guid><author>qq_36974075</author><pubDate>Sat, 05 Jan 2019 13:03:36 +0800</pubDate><description><![CDATA[构建服务器的三种方式

虚拟化

计算机系统提供的界面：



服务器


服务器组织结构：迭代服务器，并发服务器


服务器集群组织


转发原理：负载平衡策略使用轮转法或其他方法，如内容感知的请求分布





代码迁移模型

进程框架：代码段，资源段，执行段
代码迁移形式：弱可移动性（只传输代码和初始化数据），强可移动性（可以传输执行段，可以从中断的位置继续执行代码）


...]]></description><category></category></item><item><title><![CDATA[分布式系统原理（二）]]></title><link>https://blog.csdn.net/qq_36974075/article/details/85807913</link><guid>https://blog.csdn.net/qq_36974075/article/details/85807913</guid><author>qq_36974075</author><pubDate>Sat, 05 Jan 2019 11:08:02 +0800</pubDate><description><![CDATA[系统体系结构


集中式体系结构
应用分层：用户接口层、处理层、数据层




非集中式体系结构
垂直分布性：客户端-服务器多层体系
水平分布性，现代的点对点系统，每个结点或进程既是客户端也是服务器


结构化的点对点体系结构，使用分布式哈希表来组织进程
如chord系统，CAN系统





非结构化的点对点体系结构，主要依靠随机化算法来构造覆盖网络


超级对等体，如CDN




混合体系结...]]></description><category></category></item><item><title><![CDATA[分布式系统原理（一）]]></title><link>https://blog.csdn.net/qq_36974075/article/details/85792909</link><guid>https://blog.csdn.net/qq_36974075/article/details/85792909</guid><author>qq_36974075</author><pubDate>Fri, 04 Jan 2019 20:40:00 +0800</pubDate><description><![CDATA[

分布式系统定义：分布式系统是若干独立计算机的集合，这些计算机对于用户来说就像是单个相关系统





分布式系统的目标：

使资源可访问，比如多个用户共享多台打印机
透明性，访问透明性、位置透明性、迁移透明性、重定位透明性（无线网络）、复制透明性、并发透明性、故障透明性
开放性，根据一系列准则来规定发送和接收消息的格式
可扩展性，设想服务主机的数量增加的情况，比如DNS，传统的集中式服务就缺乏...]]></description><category></category></item><item><title><![CDATA[linux C语言获取时间]]></title><link>https://blog.csdn.net/qq_36974075/article/details/85047942</link><guid>https://blog.csdn.net/qq_36974075/article/details/85047942</guid><author>qq_36974075</author><pubDate>Mon, 17 Dec 2018 13:16:14 +0800</pubDate><description><![CDATA[
微秒级： https://blog.csdn.net/zhubaohua_bupt/article/details/52873082

#include &amp;lt;stdio.h&amp;gt;        // for printf()
#include &amp;lt;sys/time.h&amp;gt;    // for gettimeofday()
#include &amp;lt;unistd.h&amp;gt;     ...]]></description><category></category></item></channel></rss>