Hy


  • Home

  • About

  • Tags

  • Categories

  • Archives

  • Search

Flask 架构及请求处理

Posted on 2020-06-16 | In note
Reading time ≈ 4

本文主要从架构以及请求处理流程的角度介绍 Python 的主流网页框架 Flask。

Read more »

105. Construct Binary Tree from Preorder and Inorder Traversal

Posted on 2020-06-09 | In leetcode
Reading time ≈ 1

Problem

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Given preorder and inorder traversal of a tree, construct the binary tree.

Note:
You may assume that duplicates do not exist in the tree.

For example, given

preorder = [3,9,20,15,7]
inorder = [9,3,15,20,7]
Return the following binary tree:

3
/ \
9 20
/ \
15 7
Read more »

103. Binary Tree Zigzag Level Order Traversal

Posted on 2020-06-09 | In leetcode
Reading time ≈ 1

Problem

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).

For example:
Given binary tree [3,9,20,null,null,15,7],

3
/ \
9 20
/ \
15 7
return its zigzag level order traversal as:

[
[3],
[20,9],
[15,7]
]
Read more »

Linux 常用命令

Posted on 2020-06-08 | In note
Reading time ≈ 5

本文包括基本文本处理命令,监控命令,网络分析命令等的参数及常用使用方法的记录。

Read more »

The Rise Of Worse Is Better

Posted on 2020-06-07 | In reading
Reading time ≈ 4

Richard P. Gabriel 的 “The Rise Of Worse Is Better” 是计算机科学界中的经典文章。

它是 “Lisp: Good News, Bad News, How to Win Big.” 短文中的节录。

文章比较了软件设计中两种设计哲学:MIT/Stanford style 和 New Jersey style。

Read more »

94. Binary Tree Inorder Traversal

Posted on 2020-06-06 | In leetcode
Reading time ≈ 1

Problem

1
2
3
4
5
6
7
8
9
10
11
12
13
Given a binary tree, return the inorder traversal of its nodes' values.

Example:

Input: [1,null,2,3]
1
\
2
/
3

Output: [1,3,2]
Follow up: Recursive solution is trivial, could you do it iteratively?
Read more »

Get to know Container

Posted on 2020-06-06 | In note
Reading time ≈ 1

What is container

Container isolate application from its environment and ensure that it works on different environments.

Read more »

107. Binary Tree Level Order Traversal II

Posted on 2020-06-03 | In leetcode
Reading time ≈ 1

Problem

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).

For example:
Given binary tree [3,9,20,null,null,15,7],

3
/ \
9 20
/ \
15 7
return its bottom-up level order traversal as:

[
[15,7],
[9,20],
[3]
]
Read more »

celery 分布式任务队列

Posted on 2020-06-03 | In note
Reading time ≈ 1

celery 是基于 分布式信息传递 的 异步任务队列。他主要应用于 实时任务,但也支持 定时任务 (使用 celery beat 作为 scheduler)。celery 简单,高效,可扩展 的优点使它成为最主流的 Python 分布式框架。

Celery

Read more »

111. Minimum Depth of Binary Tree

Posted on 2020-06-01 | In leetcode
Reading time ≈ 1

Problem

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Given a binary tree, find its minimum depth.

The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node.

Note: A leaf is a node with no children.

Example:

Given binary tree [3,9,20,null,null,15,7],

3
/ \
9 20
/ \
15 7
return its minimum depth = 2.
Read more »
12

WongYuenFung

15 posts
4 categories
22 tags
© 2020 WongYuenFung
Powered by Hexo
|
Theme — NexT.Gemini v5.1.4