Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
演算法到底是在演哪一齣
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
MarkFly
February 12, 2019
Programming
83
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
演算法到底是在演哪一齣
MarkFly
February 12, 2019
More Decks by MarkFly
See All by MarkFly
關於 Mobile Developer 用 Flutter 去寫 Web 這檔事
mark33699
0
34
關於我在 visionOS 上 寫影片貼圖 app 這檔事
mark33699
0
300
iOS、Android、Flutter超級比一比
mark33699
1
1k
如何使用Swift遙控你的樂高
mark33699
0
68
直播簡單講
mark33699
1
110
多執行緒編程
mark33699
0
73
對戰三平棋
mark33699
0
200
Other Decks in Programming
See All in Programming
Kotlinの15年とServer-Side Kotlin
n_takehata
1
120
Kubernetes祭り #2 OP/ED
bells17
0
110
難しいけど、読めた。- OSSの入口に立った話。
sts11142
0
150
ジョジョの世界をXRで再現する
mofurune
0
150
パーソナライズPodcastを作った話
repunit11
0
140
Turning Architecture into Unit Tests in the AI Era (NSSpain XIV)
steliosf
PRO
1
140
IBM Bob でAI駆動開発『QC-Playbook』
ichirokano2
0
110
Ghostty + Neovimで作る 透明でカッコ良い開発環境
j341nono
0
170
複雑なUIコンポーネントとの ⻑い付き合い⽅:波及するバグからテスト戦略を経て、安全な再設計へ
mixplace
0
390
APNsからLive Activityを開始する話
yumnumm
0
170
golang-bob.pdf
iwatsukayura
0
130
Jetpack Compose Mechanisms
skydoves
2
730
Featured
See All Featured
Amusing Abliteration
ianozsvald
1
340
Code Reviewing Like a Champion
maltzj
529
40k
HDC tutorial
michielstock
2
960
Skip the Path - Find Your Career Trail
mkilby
1
250
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1.1k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
Scaling GitHub
holman
464
140k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Transcript
ALGO X SWIFT
好吧...什麼是演算法?
None
None
演算法跟程式語⾔的差異?
1.對象不同 2.⼀對多
如何選擇演算法?
重新排列50個數 需要花費比宇宙歷史還長的時間?
None
全域搜尋 VS 選擇排序
何謂資料結構?
None
如何選擇資料結構?
好存 VS 好找
STACK VS QUEUE
None
樹
1. 由N個節點組成的具有階層關係的集合 2. 沒有⽗節點的節點稱為根節點 3. 跟真實世界的樹相反, 根節點是在最上⾯ 4. ⼀定有也只有⼀個根節點 5.
除了根節點以外, 每個節點都⼀定有也只有⼀ 個根節點 6. 每個節點都只有有限個⼦節點, 也可以沒有⼦ 節點 7. 樹裡⾯不會產⽣CYCLE 8. GRAPH的⼀種
None
實戰1. 輸出⼆元樹的中序
注意根節點的位置,就能破解樹的遍歷 左節點永遠在右節點前⾯ BFS DFS
注意根節點的位置,就能破解樹的遍歷 左節點永遠在右節點前⾯ BFS DFS
注意根節點的位置,就能破解樹的遍歷 左節點永遠在右節點前⾯ BFS DFS
注意根節點的位置,就能破解樹的遍歷 左節點永遠在右節點前⾯ BFS DFS
注意根節點的位置,就能破解樹的遍歷 左節點永遠在右節點前⾯ BFS DFS
實戰2. 比較兩棵樹有幾個節點不同的⽅法
None
參考資料
None
None
None
None