LeetCode: 171-Excel Sheet Column Number 解題紀錄
題目
Given a string columnTitle
that represents the column title as appear in an Excel sheet, return its corresponding column number.
Read More »LeetCode: 171-Excel Sheet Column Number 解題紀錄Given a string columnTitle
that represents the column title as appear in an Excel sheet, return its corresponding column number.
Read More »LeetCode: 171-Excel Sheet Column Number 解題紀錄Given an arrayRead More »LeetCode: 169-Majority Element 解題紀錄nums
of sizen
, return the majority element. The majority element is the element that appears more than⌊n / 2⌋
times. You may assume that the majority element always exists in the array.
priority_queue(優先權佇列)是 C++ 標準模板函式庫(Standard Template Library, STL)中所提供的佇列容器,會優先返回優先權最高的元素。
Read More »[C++] STL 中的 priority_queue 優先權佇列筆記GitHub 是現在軟體工程師、程式員、資訊背景學生所不可或缺的重要工具。我們經常用其來做雲端的版本控制,也會在上面尋找各種大神所開源、設計的專案。
但若是我們想要下載 GitHub 倉庫中『特定的一個資料夾』,我們又該怎麼做呢?
Read More »[GitHub] 如何下載單一特定的資料夾Given string num representing a non-negative integerRead More »LeetCode: 402-Remove K Digits 解題紀錄num
, and an integerk
, return the smallest possible integer after removingk
digits fromnum
.
在我們製作一個可 demo 的專案、或是實現一個很棒的功能時,往往都會希望可以錄製一段影片,來輕易地展示我們所實現的功能。
Read More »[GitHub] 在 README 中嵌入影片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 解題紀錄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 解題紀錄