iT邦幫忙

leetcode相關文章
共有 943 則文章

技術 leetcode with MySQL:181. Employees Earning More Than Their Managers

題目: Table: Employee +-------------+---------+| Column Name | Type |+------...

技術 leetcode with python:345. Reverse Vowels of a String

題目: Given a string s, reverse only all the vowels in the string and return it....

技術 leetcode with python:205. Isomorphic Strings

題目: Given two strings s and t, determine if they are isomorphic. Two strings...

鐵人賽 自我挑戰組 DAY 30

技術 [Day 30] LeetCode 75 - 692. Top K Frequent Words 以及完賽感言

LeetCode 75 Level 1 - Day 15 Heap 題目連結 難易度:Medium 692. Top K Frequent Words...

技術 Leetcode June challenge ( Invert Binary Tree )

In time, you will call me master -- Star Wars Week 1 Invert Binary Tree...

鐵人賽 Software Development DAY 27

技術 [27] 用 python 刷 Leetcode: 455

原始題目 Assume you are an awesome parent and want to give your children some cookie...

鐵人賽 Software Development DAY 28

技術 Day 28:1. Two Sum

今日題目 題目連結:1. Two Sum 題目主題:Array, Hash Table 簡單說說 Hash Table Hash Table 主要的核心概念是...

鐵人賽 Software Development DAY 18

技術 Day 18 : 二分搜尋 Binary Search

生活上我們可能有遇過一些二分搜尋的例子。例如以前如果有當過助教的經驗,有時候我們在收學生作業時會作業按照學號由小到大排好,假設有100位學生001~100,我們...

技術 LeetCode 6. Zigzag Conversion

Zigzag Conversion Medium The string "PAYPALISHIRING" is written in...

鐵人賽 自我挑戰組 DAY 29

技術 【第二十九天 - 系統分析 題目分析】

先簡單回顧一下,今天預計分析的題目: 題目連結:https://leetcode.com/problems/design-twitter/ 題目敘述 設計...

技術 leetcode 365天 #Day110

邊聽館長罵人編寫code的直播(不過因為版權所以沒聲音XD) Check If a Number Is Majority Element in a Sort...

技術 leetcode 365天 #Day109

本人快速地發呆的過程~ Determine if String Halves Are Alike (easy)https://leetcode.com/pr...

鐵人賽 自我挑戰組 DAY 13

技術 [LeetCode with JavaScript] Day 13: Valid Parentheses

觀前提醒: 我預設大家已經先思考並分析過題目,沒啥想法才開始 google 找解題靈感。若無,建議每題先花 1~2 顆番茄鐘的時間來分析題目比較好。可參考番...

鐵人賽 Software Development DAY 1

技術 [Day 1] 不是在摸魚,但認識環境真的很重要

對於軟體工程師來說,演算法絕對是很重要的。既然早晚都要學,不如就趁早開始面對它吧(所謂早死早超生) 這系列文章主要是 LeetCode 的解題筆記,每天會有一些...

鐵人賽 Software Development DAY 19

技術 Day 19:二元樹遍歷 Binary Tree Traversal

今天一起來認識二元樹的三種遍歷方式吧!但是別急!我們先來認識二元搜尋樹BST的定義! 二元搜尋樹是一棵二元樹,如果不為空(二元樹可以為空!)則須滿足: 左子樹...

技術 [LeetCode 筆記] 11. Container With Most Water

前言   這題是一個運用雙指標的算法,目標是找到可裝最多水的容器 (面積),只需一個 while 迴圈就可依依遍歷到最大的面積答案,時間複雜度可估 O(n),這...

技術 Day02-LeetCode-SQL啟航~

我的SQL學習資源為https://www.w3schools.com/sql新手卡關基本都會找到說明的好去處,建議快速閱覽一次再刷題才會有一些查詢方向。 1...

鐵人賽 自我挑戰組 DAY 25

技術 [Day 25] LeetCode 75 - 1. Two Sum

LeetCode 75 Level 1 - Day 13 Hashmap 1. Two Sum 題目連結 難易度:Easy 題目敘述 Given an...

鐵人賽 自我挑戰組 DAY 27
Leetcode新手挑戰30天 系列 第 27

技術 #804 Unique Morse Code Words

寫在開頭 今天選的這題一樣是選#Easy、答對率也高的題目 進入正題 題目內容: International Morse Code defines a sta...

技術 leetcode with python:20. Valid Parentheses

題目: Given a string s containing just the characters '(', ')', '{', '}', '[' and...

LeetCode Top 100 Liked 系列 第 69

技術 [Day 66] Perfect Squares (Medium)

279. Perfect Squares Solution 1: DP (Bottom-up) class Solution: def numSquar...

技術 leetcode with python:278. First Bad Version

題目: You are a product manager and currently leading a team to develop a new pro...

技術 [LeetCode 筆記] 118. Pascal's Triangle

前言   這題的大方向是要如何找到上一行的上一列的元素來做兩兩相加的運算,像是動態規劃的邏輯思考,需要用到雙迴圈的關係,時間複雜度達 O(n²),這裡有 JAV...

鐵人賽 自我挑戰組 DAY 29
刷題記錄與人生分享 系列 第 29

技術 DAY29 Find Peak Element

題目: https://leetcode.com/problems/find-peak-element/回傳陣列中比左邊數字和右邊數字大之索引值。 解題思路:...

技術 leetcode with python:38. Count and Say

題目: The count-and-say sequence is a sequence of digit strings defined by the re...

技術 leetcode with MySQL:196. Delete Duplicate Emails

題目: Table: Person +-------------+---------+| Column Name | Type |+--------...

技術 [leetcode - Bliend-75 ] 242. Valid Anagram (Easy)

Given two strings s and t, return true if t is an anagram of s, and false otherw...

鐵人賽 Software Development DAY 17

技術 Day 17 : Add Two Numbers

這一題題目會給我們兩個Linked Lists,分別代表兩個非負整數。題目要我們把兩個數相加後回傳一個新的Linked Lists來代表相加後的和。 題目有說,...

技術 leetcode with python:100. Same Tree

題目: Given the roots of two binary trees p and q, write a function to check if t...

鐵人賽 自我挑戰組 DAY 10
有志者,事竟成。 系列 第 10

技術 Day10 第三十四題LeetCode #4 Median of Two Sorted Arrays

題目描述 給定兩個排好順序的vector請輸出他們的中間數並將計算時間卡在O(log(兩者長度和)) 思維 寫一個新的vector,把兩個vector排進去...