演算法筆記-Stack
Stack
先進後出的容器,有以下幾個常見的操作:
push 頂端加入元素
pop 頂端刪除元素
top 回傳頂端元素
empty 確認是否為空
size 回傳元素個數
Monotonic Stack
解題時常用的技巧,保持 Stack 裡面的元素是單調遞減或遞增,也有可能是儲存對應的下標,本文章中的遞增或遞減順序是由 Stack 底部至頂部,有的文章中偏好使用頂部至底部,故在此做區分。
分類
遞增 Stack
內部的值由底部至頂部為遞增。
當前值大於 Stack 頂部值:直接插入 Stack 中。
當前值小於 Stack 頂部值:不斷移除頂部值,直到當前值大於 Stack 頂部值或是 Stack 為空,最後插入當前值。
Code:
12345678stack<int> stk;vector<int> input;for(int i = 0; i < input.size(); i++){ while(!stk.empty() && stk.top() > input[i]){ stk. ...
Google人工智慧要點筆記
Google AI Essentials
證書簡介
官網介紹:
Google AI Essentials 是一門自定進度的課程,目的是幫助不同角色和行業的人們獲得基本的人工智慧技能,並且應用到工作以及生活中,以提高生產力。
本證書只包含一個課程,主要內容是介紹 AI 工具的使用,以及如何應用到工作以及日常生活之中,大約十個小時以內可以完成,實作的部分都是可選的,大多可以使用 Gemini 等工具幫助完成,測驗也只有幾個,整體來說難度不會太高。
和資料分析課程一樣為全英文,影片都有字幕。
章節大綱
Introduction to AI
了解 AI 的工作原理以及基本知識,學習如何利用它來執行任務。
Maximize Productivity With AI Tools
學習利用生成式 AI 工具加快工作任務並提高工作效率。
Discover the Art of Prompt Engineering
學習編寫有效的提示以獲得想要的輸出,並且將提示技術融入工作中。
Use AI Responsibly
了解如何負責任且有效地使用人工智慧,減少偏見和不準確性。
Stay Ahead ...
Google資料分析課程心得
Google Data Analytics Certificate
證書簡介
官網介紹:
無論你是剛起步還是想在數據分析領域邁出下一步,Google 的專業證書都可以幫助您獲得必備的技能,學習 R 程式設計、SQL、Python、Tableau 等知識。
本證書總共包含八個課程,雖然官網上的規劃是用六個月來完成,不過因為是訂閱制度,因此可以依照自己的進度自行調整,省下一筆錢,這次總共用了三十多天來完成 (包含七天的試用期),詳細的時間分配之後也會提到。
課程的知識不算太過於深入,但是涵蓋了許多面向,如同官網所提到的,介紹了從資料清理、分析到視覺化的各種工具,除此之外也與職場做了許多連結,包括之後的更多應用以及求職、面試等內容都有提到,就算沒有太多的先備知識學起來也不算太困難,非常適合新手參與。
課程為全英文,不過大部分的影片都有字幕,理解上不會太困難,只是有些專業的名詞需要多注意。
各課程內容 & 時間分配
分配時間為個人經驗,主要是為了在一個月內完成,需依照實際情況分配。
課程
主要內容
分配時間
筆記
Foundations: Data, Data, E ...
Google資料分析課程筆記-8
Course 8 - Google Data Analytics Capstone
簡介
This course is the eighth and final course in the Google Data Analytics Certificate. You’ll have the opportunity to complete a case study, which will help prepare you for your data analytics job hunt. Case studies are commonly used by employers to assess analytical skills. For your case study, you’ll choose an analytics-based scenario. You’ll then ask questions, prepare, process, analyze, visualize and act on the data from the scenario. You’ll also le ...
Google資料分析課程筆記-7
Course 7 - Data Analysis with R Programming
簡介
This course is the seventh course in the Google Data Analytics Certificate. In this course, you’ll learn about the programming language known as R. You’ll find out how to use RStudio, the environment that allows you to work with R, and the software applications and tools that are unique to R, such as R packages. You’ll discover how R lets you clean, organize, analyze, visualize, and report data in new and more powerful ways.
章節大綱
Programming and da ...
Google資料分析課程筆記-6
Course 6 - Share Data Through the Art of Visualization
簡介
This is the sixth course in the Google Data Analytics Certificate. You’ll learn how to visualize and present your data findings as you complete the data analysis process. This course will show you how data visualizations, such as visual dashboards, can help bring your data to life. You’ll also explore Tableau, a data visualization platform that will help you create effective visualizations for your presentations.
章節大綱
Visualize data
認識各種 ...
Google資料分析課程筆記-5
Course 5 - Analyze Data to Answer Questions
簡介
This is the fifth course in the Google Data Analytics Certificate. In this course, you’ll explore what it means to actually analyze your data. You’ll take what you’ve learned up to this point and apply it to make sense of the data you’ve collected. You’ll learn how to organize and format your data using spreadsheets and SQL to help you look at and think about your data in different ways. You’ll also find out how to perform complex calculations with ...
Google資料分析課程筆記-4
Course 4 - Process Data from Dirty to Clean
簡介
This is the fourth course in the Google Data Analytics Certificate. In this course, you’ll continue to build your understanding of data analytics and the concepts and tools that data analysts use in their work. You’ll learn how to check and clean your data using spreadsheets and SQL, as well as how to verify and report your data cleaning results.
章節大綱
The importance of integrity
學習檢查資料完整性以及數據不足的處理方式,了解隨機抽樣對於避免抽樣偏差的重要性。
Clean data for more accurate ...
Google資料分析課程筆記-3
Course 3 - Prepare Data for Exploration
簡介
This is the third course in the Google Data Analytics Certificate. As you continue to build on your understanding of the topics from the first two courses, you’ll be introduced to new topics that will help you gain practical data analytics skills. You’ll learn how to use tools like spreadsheets and SQL to extract and make use of the right data for your objectives, and how to organize and protect your data.
章節大綱
Data types and structures
學習數據是如何產生的以及分析師 ...
Google資料分析課程筆記-2
Course 2 - Ask Questions to Make Data-Driven Decisions
簡介
This is the second course in the Google Data Analytics Certificate. You’ll build on your understanding of the topics that were introduced in the first course of this certificate program. The material will help you learn how to ask effective questions, make data-driven decisions, and meet stakeholders’ needs.
章節大綱
Ask effective questions
在這個單元內學習如何進行有效的提問,良好的提問可以讓整個分析的流程變得更加順利。
Make data-driven decisions
本單元介紹數據如何去驅動的各種業務方面的決策,並且學習如何透過報告和 ...














