Clay
[C++] STL 中的 priority_queue 優先權佇列筆記
priority_queue(優先權佇列)是 C++ 標準模板函式庫(Standard Template Library, STL)中所提供的佇列容器,會優先返回優先權最高的元素。
Read More »[C++] STL 中的 priority_queue 優先權佇列筆記[GitHub] 如何下載單一特定的資料夾
GitHub 是現在軟體工程師、程式員、資訊背景學生所不可或缺的重要工具。我們經常用其來做雲端的版本控制,也會在上面尋找各種大神所開源、設計的專案。
但若是我們想要下載 GitHub 倉庫中『特定的一個資料夾』,我們又該怎麼做呢?
Read More »[GitHub] 如何下載單一特定的資料夾LeetCode: 402-Remove K Digits 解題紀錄
題目
Given string num representing a non-negative integerRead More »LeetCode: 402-Remove K Digits 解題紀錄num, and an integerk, return the smallest possible integer after removingkdigits fromnum.
[GitHub] 在 README 中嵌入影片
在我們製作一個可 demo 的專案、或是實現一個很棒的功能時,往往都會希望可以錄製一段影片,來輕易地展示我們所實現的功能。
Read More »[GitHub] 在 README 中嵌入影片LeetCode: 136-Single Number 解題紀錄
題目
Given a non-empty array of integers nums, every element appears twice except for one. Find that single one.
You must implement a solution with a linear runtime complexity and use only constant extra space.
Read More »LeetCode: 136-Single Number 解題紀錄LeetCode: 78-Subsets 解題紀錄
題目
Given an integer array nums of unique elements, return all possible subsets (the power set).
The solution set must not contain duplicate subsets. Return the solution in any order.
Read More »LeetCode: 78-Subsets 解題紀錄LeetCode: 567-Permutation in String 解題紀錄
題目
Given two stringsRead More »LeetCode: 567-Permutation in String 解題紀錄s1ands2, returntrueifs2contains a permutation ofs1, orfalseotherwise. In other words, returntrueif one ofs1's permutations is the substring ofs2.
LeetCode: 389-Find the Difference 解題紀錄
題目
You are given two stringsRead More »LeetCode: 389-Find the Difference 解題紀錄sandt. Stringtis generated by random shuffling stringsand then add one more letter at a random position. Return the letter that was added tot.