Skip to content

Instantly share code, notes, and snippets.

View dreamer2q's full-sized avatar
💭
I may be slow to respond.

Jack Li dreamer2q

💭
I may be slow to respond.
View GitHub Profile
@dreamer2q
dreamer2q / Quoit Design.cpp
Last active September 25, 2020 06:50
acm write up
#include <bits/stdc++.h>
using namespace std;
// Quoit Design
//
// 寻找两点之间最短的距离
// 这题标准的算法我不懂
// 但是由于数据很大,不需要搜索全部的数据
@dreamer2q
dreamer2q / Docker 入门 1.md
Last active August 26, 2020 17:12
学习docker笔记

Docker 入门

最近开始写了个后台,需要进行部署。

因为环境是 docker swarm,这里记录一下学习 docker 笔记。

介绍

@dreamer2q
dreamer2q / bfs.md
Last active May 9, 2020 14:30
Data structure study and write up

搜索算法

宽度优先搜索(BFS)

  • 介绍

宽度优先搜索算法(又称广度优先搜索)是最简便的图的搜索算法之一,这一算法也是很多重要的图的算法的原型。Dijkstra 单源最短路径算法和 Prim 最小生成树算法都采用了和宽度优先搜索类似的思想。其别名又叫 BFS,属于一种盲目搜寻法,目的是系统地展开并检查图中的所有节点,以找寻结果。换句话说,它并不考虑结果的可能位置,彻底地搜索整张图,直到找到结果为止。

  • 遍历二叉树
@dreamer2q
dreamer2q / goroutine.md
Last active April 17, 2020 06:28
go_study

Go语言goroutine通道学习

学习Go语言也有一段时间了,Go带给我的最直观的感受就是强大,简洁的并发能力。 于是乎,Go在Web等需要并发的地方大方光彩。我还记得第一次用Go写出一个httpServer是, 简直不敢相信如此简单明了。这可能是我接触语言较少有关系吧,反正如果是用C语言来写的花, 我估计还在为Socket监听,和多线程困恼。反正Go带给我的就是怎么酸爽!

Goroutine

flutter 入坑记

说实话我平时很少去了解一下技术的动向,这也是我对前端了解得少之又少的原因了把。

不过入坑flutter的原因是,我提出代码重构的需求(本着多学点的意图),然后学长就推荐了flutter,让我去了解一下。

不过,起先我确实没怎么在意。仅仅去随便 Google 了一下,了解到flutter兼顾跨平台与原生的性能很优秀。

不过,后面才进一步的了解到,flutterGoogle新的操作系统Fuchsia的 UI。 我比较好奇FuchsiaWebview在 flutter 表现如何

@dreamer2q
dreamer2q / born_to_win.md
Last active April 25, 2020 02:31
English_writing

Born to win

“I applied for Harvard ten times, got rejected ten times, and I told myself that ‘Someday I should go teach there’ ” – Jack Ma, Founder and Executive Chairman of Alibaba Group.

As is known to all, Jack Ma is no doubt a successful man.

However, how much do you know behind this successful man?

He was ignored, laughed at, critisized, rejected, doubted but he never quit.

@dreamer2q
dreamer2q / 1010.cpp
Created March 20, 2020 13:56
Frogs' Neighborhood
#include <stdio.h>
#include <string.h>
#include <algorithm>
/*
Frogs' Neighborhood
*/
bool cmp(int a, int b) {
return a > b;