【LeetCode-面試演算法經典-Java實現】【所有題目目錄索引】__編碼

來源:互聯網
上載者:User
【博文總目錄>>>】 LeetCode演算法題典

  LeetCode是一個準備面試非常有用的網站,是非常值得去的地方,裡面都是一些經典的面試題,這些題目在Google,Microsoft,Facebook,Yahoo等大型互連網公司面試題中出現過,並且題目分為易,中,難三等,也按專題進行了分類,做題時可以根據自己的喜好進行。本人現在正在LeetCode上進行做題練習,並且將做的過程記錄下來,供自己以後複習和大家學習,這篇部落格就是本人做題的總目錄,本人會持續更新,歡迎大家關注,如果有什麼不足的地方還請大家不吝指出,有什麼好的想法和建議也可以一起討論。
  本人的所有部落格都歡迎轉載,轉載請註明出處。 所有代碼下載【https://github.com/Wang-Jun-Chao/leetcode】 目錄 第001-020題 【001-Two Sum(求兩個數的和)】 【002-Add Two Numbers (單鏈表表示的兩個數相加)】 【003-Longest Substring Without Repeating Characters(最長非重複子字串)】 【004-Median of Two Sorted Arrays(兩個排序數組的中位元)】 【005-Longest Palindromic Substring(最長迴文子串)】 【006-ZigZag Conversion(Z字型轉換)】 【007-Reverse Integer(翻轉整數)】 【008-String to Integer (atoi) (字串轉成整數)】 【009-Palindrome Number(迴文數)】 【010-Regular Expresssion Matching(Regex匹配)】 【011-ContainerWithMostWater(容納最多的水)】 【012-Integer to Roman(數字轉羅馬字元)】 【013-Roman to Integer (羅馬數字轉成整數)】 【014-Longest Common Prefix(最長公用首碼)】 【015-3 Sum(三個數的和)】 【016-3 Sum Closest(最接近的三個數的和)】 【017-Letter Combinations of a Phone Number (電話號碼上的單片語合)】 【018-4Sum(四個數的和)】 【019-Remove Nth Node From End of List(移除單鏈表的倒數第N個節點)】 【020-Valid Parentheses(括弧驗證)】 第021-040題 【021-Merge Two Sorted Lists(合并兩個排好序的單鏈表)】 【022-Generate Parentheses(產生括弧)】 【023-Merge k Sorted Lists(合并k個排好的的單鏈表)】 【024-Swap Nodes in Pairs(成對交換單鏈表的結點)】 【025-Reverse Nodes in k-Group(單鏈表中k個結點一組進行反轉)】 【026-Remove Duplicates from Sorted Array(刪除排序數組中的重複元素)】 【027-Remove Element(刪除數組中的元素)】 【028-Implement strStr() (實現strStr()函數)】 【029-Divide Two Integers(兩個整數相除)】 【030-Substring with Concatenation of All Words(串聯所有單詞的子串)】 []( “”) 【032-Longest Valid Parentheses(最長有效括弧)】 【033-Search in Rotated Sorted Array(在旋轉數組中搜尋)】 【034-Search for a Range(搜尋一個範圍)】 【035-Search Insert Position(搜尋插入位置)】 【036-Valid Sudoku(驗證數獨棋盤)】 []( “”) 【038-Count and Say(計數和表述)】 []( “”) []( “”) 第041-060題 []( “”) []( “”) []( “”) []( “”) []( “”) 【046-Permutations(求排列)】 []( “”) []( “”) []( “”) 【050-Implement pow(x, n)(求x的n次方)】 []( “”) []( “”) 【053-Maximum Subarray(最大子數組和)】 【054-Spiral Matrix(螺旋矩陣)】 []( “”) 【056-Merge Intervals(區間合并)】 【057-Insert Interval(插入區間)】 【058-Length of Last Word (最後一個單詞的長度)】 【059-Spiral Matrix II(螺旋矩陣II)】 []( “”) 第061-080題 【061-Rotate List(旋轉單鏈表)】 【062-Unique Paths(唯一路徑)】 【063-Unique Paths II(唯一路徑問題II)】 【064-Minimum Path Sum(最小路徑和)】 []( “”) 【066-Plus One(加一)】 【067-Add Binary(二進位加法)】 []( “”) []( “”) 【070-Set Matrix Zeroes(矩陣置零)】 []( “”) []( “”) 【073-Climbing Stairs(爬樓梯)】 【074-Search a 2D Matrix(搜尋二維矩陣)】 【075-Sort Colors (顏色排序)】 []( “”) 【077-Combinations(組合數)】 【078-Subsets(子集)】 【079-Word Search(單詞搜尋)】 []( “”) 第081-100題 []( “”) 【081-Search in Rotated Sorted Array II(搜尋旋轉的排序數組)】 【082-Remove Duplicates from Sorted List II(排序鏈表中重複資料刪除元素II)】 【083-Remove Duplicates from Sorted List(排序的單鏈表中重複資料刪除的結點)】 []( “”) []( “”) 【086-Partition List(將單鏈表進行分區)】 【088-Merge Sorted Array(合并排序數組)】 【089-Gray Code(格雷碼)】 []( “”) []( “”) 【092-Reverse Linked List II(反轉單鏈表II)】 【094-Binary Tree Inorder Traversal(二叉樹中序遍曆)】 []( “”) 【096-Unique Binary Search Trees(唯一二叉搜尋樹)】 []( “”) []( “”) 【098-Validate Binary Search Tree(驗證二叉搜尋樹)】 []( “”) 【100-Same Tree(兩棵樹是否相同)】 第101-120題 【101-Symmetric Tree(對稱樹)】 【102-Binary Tree Level Order Traversal(二叉樹層序遍曆)】 【103-Binary Tree Zigzag Level Order Traversal(二叉樹分層Z字形遍曆)】 【104-Maximum Depth of Binary Tree(二叉樹的最大深度)】 【105-Construct Binary Tree from Preorder and Inorder Traversal(通過前序和中序遍曆構造二叉樹)】 【106-Construct Binary Tree from Inorder and Postorder Traversal(通過中序和後序遍曆構造二叉樹)】 【107-Binary Tree Level Order Traversal II(二叉樹層序遍曆II)】 【108-Convert Sorted Array to Binary Search Tree(排序數組轉變為平衡二叉樹)】 【109-Convert Sorted List to Binary Search Tree(排序鏈錶轉換成二叉排序樹)】 【110-Balanced Binary Tree(平衡二叉樹)】 【111-Minimum Depth of Binary Tree(二叉樹的最小深度)】 【112-Path Sum(路徑和)】 【113-Path Sum II(路徑和II)】 【114-Flatten Binary Tree to Linked List(二叉樹轉單鏈表)】 []( “”) 【116-Populating Next Right Pointers in Each Node(二叉樹連結右指標)】 【117-Populating Next Right Pointers in Each Node(二叉樹連結右指標II)】 【118-Pascal’s Triangle(帕斯卡三角形(楊輝三角))】 【119-Pascal’s Triangle II(帕斯卡三角形(楊輝三角)II)】 【120-Triangle(三角形)】 第121-140題 【121-Best Time to Buy and Sell Stock(最佳買賣股票的時間)】 []( “”) []( “”) []( “”) 【125-Valid Palindrome(迴文字驗證)】 []( “”) []( “”) []( “”) 【129-Sum Root to Leaf Numbers(所有根到葉子結點組組成的數字相加)】 【130-Surrounded Regions(環繞地區)】 []( “”) []( “”) []( “”) 【134-Gas Station(加油站問題】 []( “”) 【136-Single Number(只出現一次的數字)】 【137-Single Number II(只出現一次的數字II)】 【138-Copy List with Random Pointer(拷貝有隨機指標的單鏈表)】 【139-Word Break(單詞拆分)】 []( “”) 第141-160題 【141-Linked List Cycle(單鏈表中有環)】 【142-Linked List Cycle II(單鏈表中有環II)】 【143-Copy List with Random Pointer(有隨機指標的鏈表複製)】 【144-Binary Tree Preorder Traversal(二叉樹非遞迴前序走訪)】 【145-Binary Tree Postorder Traversal(二叉樹非遞迴後序遍曆)】 []( “”) 【147-Insertion Sort List(鏈表插入排序)】 []( “”) []( “”) []( “”) 【150-Evaluate Reverse Polish Notation(計算逆波蘭式)】 【151-Reverse Words in a String(反轉字串中的單詞)】 【152-Maximum Product Subarray(子數組的最大乘積)】 【153-Find Minimum in Rotated Sorted Array(找旋轉數組中的最小數字)】 【154-Find Minimum in Rotated Sorted Array II(找旋轉數組中的最小數字II)】 【155-Min Stack(最小棧)】 []( “”) []( “”) []( “”) 【160-Intersection of Two Linked Lists(單鏈表的交集)】 第161-180題 []( “”) []( “”) []( “”) []( “”) 【165-Compare Version Numbers(比較版本號碼)】 []( “”) []( “”) 【168-Excel Sheet Column Title(Excell欄位標題)】 【169-Majority Element(主要元素)】 []( “”) 【171-Excel Sheet Column Number(Excel表行號)】 【172-Factorial Trailing Zeroes(階乘尾後0的數目)】 []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) 第181-200題 []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) 【189-Rotate Array(旋轉數組)】 【190-Reverse Bits(反轉二制)】 []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) 【198-House Robber(搶劫犯)】 【199-Binary Tree Right Side View(從右邊看二叉樹】 第201-220題 【200-Number of Islands(島的數目)】 【201-Bitwise AND of Numbers Range(範圍數位與結果)】 【202-Happy Number(開心數字)】 【203-Remove Linked List Elements(刪除單鏈表中的元素)】 【204-Count Primes(統計質數)】 【205-Isomorphic Strings(同構字串)】 【206-Reverse Linked List(反轉一個單鏈表)】 []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) 【215-Kth Largest Element in an Array(數組中第K大的數)】 【216-Combination Sum III (組合數的和)】 【217-Contains Duplicate(包含重複元素)】 []( “”) 【219-Contains Duplicate II(包含重複元素II)】 []( “”) 第221-240題 []( “”) []( “”) 【223-Rectangle Area(矩形地區)】 []( “”) 【225-Implement Stack using Queues(用隊列實現棧操作)】 []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) 第241-260題 []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) 第261-280題 []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) []( “”) 第281-300題 []( “”) [

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.