python map & filter & reduce

map, filter, reduce 是函数式编程的函数, 不再需要循环分支使得代码更加简洁。map/reduce 和google的map/reduce功能是类似的, filter有些类似shuffle, 当然shuffle更多的工作是将相同的key放到同一个reduce计算中 ...

2021-01-17 · 1 min · 283 words · Garlic Space

可逆计算 reversible computing

本周在学习Trie数据结构的时候,看到了他的发明者 Edward Fredkin,他也在研究reversible computing 弗雷德金(Fredkin)对计算,硬件和软件一直很感兴趣。 在1960年代初期,他在BBN编写了第一台PDP-1汇编程序。 他是trie数据结构,Fredkin gate和Billiard-Ball计算机模型的可逆计算的发明者。 他的主要贡献包括他在可逆计算和元胞自动机方面的工作。 他还研究领域还包括计算机视觉,人工智能研究和计算机象棋。 ...

2021-01-17 · 2 min · 855 words · Garlic Space

关于Trie

最早提及Trie树的一篇文章

2021-01-16 · 21 min · 10146 words · Garlic Space

LeetCode- Replace Words Solution

题目: In English, we have a concept called root, which can be followed by some other word to form another longer word - let’s call this word successor. For example, when the root "an" is followed by the successor word "other", we can form a new word "another". Given a dictionary consisting of many roots and a sentence consisting of words separated by spaces, replace all the successors in the sentence with the root forming it. If a successor can be replaced by more than one root, replace it with the root that has the shortest length. ...

2021-01-12 · 4 min · 1587 words · Garlic Space

docker安装 zookeeper, dubbo-admin

1 . 环境:

2020-12-23 · 1 min · 172 words · Garlic Space

docker安装tomcat

1 . 环境:

2020-12-22 · 1 min · 229 words · Garlic Space

cenos7 docker安装

环境:

2020-12-21 · 1 min · 122 words · Garlic Space

spring boot+maven 生成多模块项目

spring boot + maven配置, 创建一个包含多个模块项目的步骤 项目创建 使用spring的initializr 选择一下就可以生成代码 项目: tongda (jar) 模块: user (war) order (war) common (jar) 配置: Project : Maven Project Language : Java Spring Boot : 2.4.1 Dependencies: Java : 11 Packaging :jar/war 调整 parent POM 修改tongda的pom.xml, 打包类型设置为pom ...

2020-12-21 · 1 min · 280 words · Garlic Space

用Spring boot 生成Java项目

学习java, 尝试用了spring boot创建了一个项目, 使用是maven配置, spring boot 提供很多的模板, 创建项目非常方便, 这让我想起了visual studio 点击几下鼠标自动生成模板代码。

2020-12-16 · 3 min · 1026 words · Garlic Space

LeetCode- Map Sum Pairs Solution

Implement a MapSum class with insert, and sum methods

2020-09-22 · 2 min · 661 words · Garlic Space