總結 從過去這 75 題 leetcode 的解題歷程 其實可以發現 解題最重要的一件事是先理解題目 能夠明白題目的結構知道需求 才能找出符合需求的解法 解法也...
Number of 1 Bits Write a function that takes an unsigned integer and returns the...
Counting Bits Given an integer n, return an array ans of length n + 1 such that...
Reverse Bits Reverse bits of a given 32 bits unsigned integer. Note: Note that...
Sum of Two Integers Given two integers a and b, return the sum of the two intege...
Missing Number Given an array nums containing n distinct numbers in the range [0...
圖解 blind 75: Bit Manipulation 簡介 Bit Manipulation 簡介 在電腦之中,數值都是已二進位去做儲存 對於數值來說有些...
Rotate Image You are given an n x n 2D matrix representing an image, rotate the...
Spiral Matrix Given an m x n matrix, return all elements of the matrix in spiral...
Set Matrix Zeroes Given an m x n integer matrix matrix, if an element is 0, set...
圖解 blind 75: Math & Geometry 題型 Math & Geometry 題型 這類題型主要可以透過一些數學特性或是幾何學...
Insert Interval You are given an array of non-overlapping intervals intervals wh...
Merge Intervals Given an array of intervals where intervals[i] = [starti, endi],...
Non-overlapping Intervals Given an array of intervals intervals where intervals[...
Meeting Rooms II Given an array of meeting time intervals consisting of start an...
Meeting Rooms Given an array of meeting time intervals consisting of start and e...
圖解 blind 75: Intervals 資料類型介紹 Intervals 資料類型介紹 Intervals 資料類型是筆者自己對這類資料的分類 並非是真正...
Maximum Subarray Given an integer array nums, find the contiguous subarray (cont...
Jump Game You are given an integer array nums. You are initially positioned at t...
Greedy 策略簡介 Greedy 策略 是種解決問題的策略。 類似於動態規劃 ,Greedy 策略 也是透過把原本問題拆解成子問題去解。每次解決子問題都選擇...
Unique Paths There is a robot on an m x n grid. The robot is initially located a...
Longest Common Subsequence Given two strings text1 and text2, return the length...
Coin Change You are given an integer array coins representing coins of different...
Maximum Product Subarray Given an integer array nums, find a contiguous non-empt...
Word Break Given a string s and a dictionary of strings wordDict, return true if...
Longest Increasing Subsequence Given an integer array nums, return the length of...
Palindromic Substrings Given a string s, return the number of palindromic substr...
Longest Palindromic Substring Given a string s, return the longest palindromic s...
Decode Ways A message containing letters from A-Z can be encoded into numbers us...
House Robber II You are a professional robber planning to rob houses along a str...