題目: Table: Employee +-------------+---------+| Column Name | Type |+------...
題目: Given a string s, reverse only all the vowels in the string and return it....
題目: Given two strings s and t, determine if they are isomorphic. Two strings...
LeetCode 75 Level 1 - Day 15 Heap 題目連結 難易度:Medium 692. Top K Frequent Words...
In time, you will call me master -- Star Wars Week 1 Invert Binary Tree...
原始題目 Assume you are an awesome parent and want to give your children some cookie...
今日題目 題目連結:1. Two Sum 題目主題:Array, Hash Table 簡單說說 Hash Table Hash Table 主要的核心概念是...
生活上我們可能有遇過一些二分搜尋的例子。例如以前如果有當過助教的經驗,有時候我們在收學生作業時會作業按照學號由小到大排好,假設有100位學生001~100,我們...
Zigzag Conversion Medium The string "PAYPALISHIRING" is written in...
先簡單回顧一下,今天預計分析的題目: 題目連結:https://leetcode.com/problems/design-twitter/ 題目敘述 設計...
邊聽館長罵人編寫code的直播(不過因為版權所以沒聲音XD) Check If a Number Is Majority Element in a Sort...
本人快速地發呆的過程~ Determine if String Halves Are Alike (easy)https://leetcode.com/pr...
觀前提醒: 我預設大家已經先思考並分析過題目,沒啥想法才開始 google 找解題靈感。若無,建議每題先花 1~2 顆番茄鐘的時間來分析題目比較好。可參考番...
對於軟體工程師來說,演算法絕對是很重要的。既然早晚都要學,不如就趁早開始面對它吧(所謂早死早超生) 這系列文章主要是 LeetCode 的解題筆記,每天會有一些...
今天一起來認識二元樹的三種遍歷方式吧!但是別急!我們先來認識二元搜尋樹BST的定義! 二元搜尋樹是一棵二元樹,如果不為空(二元樹可以為空!)則須滿足: 左子樹...
前言 這題是一個運用雙指標的算法,目標是找到可裝最多水的容器 (面積),只需一個 while 迴圈就可依依遍歷到最大的面積答案,時間複雜度可估 O(n),這...
我的SQL學習資源為https://www.w3schools.com/sql新手卡關基本都會找到說明的好去處,建議快速閱覽一次再刷題才會有一些查詢方向。 1...
LeetCode 75 Level 1 - Day 13 Hashmap 1. Two Sum 題目連結 難易度:Easy 題目敘述 Given an...
寫在開頭 今天選的這題一樣是選#Easy、答對率也高的題目 進入正題 題目內容: International Morse Code defines a sta...
題目: Given a string s containing just the characters '(', ')', '{', '}', '[' and...
279. Perfect Squares Solution 1: DP (Bottom-up) class Solution: def numSquar...
題目: You are a product manager and currently leading a team to develop a new pro...
前言 這題的大方向是要如何找到上一行的上一列的元素來做兩兩相加的運算,像是動態規劃的邏輯思考,需要用到雙迴圈的關係,時間複雜度達 O(n²),這裡有 JAV...
題目: https://leetcode.com/problems/find-peak-element/回傳陣列中比左邊數字和右邊數字大之索引值。 解題思路:...
題目: The count-and-say sequence is a sequence of digit strings defined by the re...
題目: Table: Person +-------------+---------+| Column Name | Type |+--------...
Given two strings s and t, return true if t is an anagram of s, and false otherw...
這一題題目會給我們兩個Linked Lists,分別代表兩個非負整數。題目要我們把兩個數相加後回傳一個新的Linked Lists來代表相加後的和。 題目有說,...
題目: Given the roots of two binary trees p and q, write a function to check if t...
題目描述 給定兩個排好順序的vector請輸出他們的中間數並將計算時間卡在O(log(兩者長度和)) 思維 寫一個新的vector,把兩個vector排進去...