Skip to content

Instantly share code, notes, and snippets.

Avatar

Jack Li dreamer2q

View GitHub Profile
@dreamer2q
dreamer2q / bfs.md
Last active May 9, 2020
Data structure study and write up
View bfs.md

搜索算法

宽度优先搜索(BFS)

  • 介绍

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

  • 遍历二叉树
View goroutine.md

Go语言goroutine通道学习

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

Goroutine

View flutter_writeup.md

flutter 入坑记

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

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

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

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

@dreamer2q
dreamer2q / born_to_win.md
Last active Apr 25, 2020
English_writing
View born_to_win.md

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 Mar 20, 2020
Frogs' Neighborhood
View 1010.cpp
#include <stdio.h>
#include <string.h>
#include <algorithm>
/*
Frogs' Neighborhood
*/
bool cmp(int a, int b) {
return a > b;
You can’t perform that action at this time.