上一页 1 2 3 4 5 6 7 ··· 13 下一页
摘要: Given a non-empty array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runti 阅读全文
posted @ 2019-08-05 22:42 爱简单的Paul 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 一、C++ 虚函数实现多态 注册器模式 二、基类指针转换成子类指针 需要强制进行转换,必要时。如果不必要,尽量少做转型。 dynamic_cast 三、链接时出现 重复定义的错误 报错文件的头文件中含有 函数的实现,加上 inline 关键字,extern 关键字 参考 四、用Google的gfla 阅读全文
posted @ 2019-06-16 11:11 爱简单的Paul 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 1. Bazel是一个类似于Make的编译工具,是Google为其内部软件开发的特点量身定制的工具,如今Google使用它来构建内部大多数的软件。Google认为直接用Makefile构建软件速度太慢,结果不可靠,所以构建了一个新的工具叫做Bazel,Bazel的规则层级更高。 https://gi 阅读全文
posted @ 2019-06-05 13:45 爱简单的Paul 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 1. size_t 类型定义在cstddef头文件中,该文件是C标准库的头文件stddef.h的C++版。它是一个与机器相关的unsigned类型,其大小足以保证存储内存中对象的大小。 2. calloc 功 能: 在内存的动态存储区中分配n个长度为size的连续空间,函数返回一个指向分配起始地址的 阅读全文
posted @ 2019-05-31 19:02 爱简单的Paul 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 一、分布式系统中,缓存是十分重要的一个环节。 类型:远程分布式 和 本地 两种模式 以及两种模式的结合。 缓存目标: 全量 和 增量 以及 全部 缓存 二、本地缓存常见的一种方式: https://www.cnblogs.com/-OYK/archive/2012/12/05/2803317.htm 阅读全文
posted @ 2019-05-09 22:43 爱简单的Paul 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Medium Medium Medium Given a string, sort it in decreasing order based on the frequency of characters. Example 1: Input: "tree" Output: "eert" Explana 阅读全文
posted @ 2019-05-09 22:41 爱简单的Paul 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1、pthread_mutex_lock :当pthread_mutex_lock()返回时,该互斥锁已被锁定。线程调用该函数让互斥锁上锁,如果该互斥锁已被另一个线程锁定和拥有,则调用该线程将阻塞,直到该互斥锁变为可用为止 2、pthread_cond_wait :条件变量是利用线程间共享的全局变量 阅读全文
posted @ 2019-05-09 21:46 爱简单的Paul 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 开发人员必备的技能——单元测试 谷歌单元测试框架 阅读全文
posted @ 2019-05-09 21:42 爱简单的Paul 阅读(126) 评论(2) 推荐(0) 编辑
摘要: 725. Split Linked List in Parts Medium 725. Split Linked List in Parts Medium Medium Given a (singly) linked list with head node root, write a functio 阅读全文
posted @ 2019-04-29 23:11 爱简单的Paul 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers, find out whether there are two distinct indices iand j in the array such that the absolute difference between nums[i] and  阅读全文
posted @ 2019-04-22 22:55 爱简单的Paul 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 678. Valid Parenthesis String Medium Given a string containing only three types of characters: '(', ')' and '*', write a function to check whether thi 阅读全文
posted @ 2019-04-17 00:27 爱简单的Paul 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 324. Wiggle Sort II 摆动排序问题 324. Wiggle Sort II 摆动排序问题 摆动排序问题 Given an unsorted array nums, reorder it such that nums[0] < nums[1] > nums[2] < nums[3]. 阅读全文
posted @ 2019-04-11 23:59 爱简单的Paul 阅读(85) 评论(0) 推荐(0) 编辑
摘要: Given a binary search tree (BST) with duplicates, find all the mode(s) (the most frequently occurred element) in the given BST. Assume a BST is define 阅读全文
posted @ 2019-03-21 00:08 爱简单的Paul 阅读(240) 评论(0) 推荐(0) 编辑
摘要: dfs 阅读全文
posted @ 2019-03-18 21:55 爱简单的Paul 阅读(1052) 评论(0) 推荐(0) 编辑
摘要: zk 介绍相关: 实践相关 https://cloud.tencent.com/developer/article/1335022 原理相关 http://www.cnblogs.com/sunddenly/p/4033574.html 一、zookeeper 分布式协调技术 Zookeeper是H 阅读全文
posted @ 2019-03-08 23:37 爱简单的Paul 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 一. kafka 处理增量消息 kafka 原理介绍:https://www.cnblogs.com/xifenglou/p/7251112.html https://blog.csdn.net/z69183787/article/details/80325743 很好的一篇文章:http://ww 阅读全文
posted @ 2019-03-08 23:36 爱简单的Paul 阅读(161) 评论(0) 推荐(0) 编辑
摘要: You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each time 阅读全文
posted @ 2019-03-08 00:07 爱简单的Paul 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 搜索引擎中常用的两种数据结构文件 正排 和 倒排。 倒排文件用来实现召回,正排文件实现业务过滤和筛选。 阅读全文
posted @ 2019-03-07 23:48 爱简单的Paul 阅读(1001) 评论(0) 推荐(0) 编辑
摘要: 首先,可以先参考 文档: https://design-patterns.readthedocs.io/zh_CN/latest/index.html 创建型: 1.简单工厂模式 2. 工厂方法模式 3、抽象工厂模式 阅读全文
posted @ 2019-03-07 23:45 爱简单的Paul 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 1. 工厂模式 2.typename 3. value_type 4.mutable__ 5. 虚基类 6.类的前向声明 7.dynamic_cast主要用于类层次间的上行转换和下行转换,还可以用于类之间的交叉转换。 8. git push origin与git push -u origin mas 阅读全文
posted @ 2019-02-25 16:41 爱简单的Paul 阅读(239) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 13 下一页