
Leetcode
文章平均质量分 84
wangxiaojun911
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Leetcode全树类问题
Leetcode全树类问题。算法总的来说就是递归(Stack, DFS)和广度优先(Queue, BFS)两种。下面有关二叉树类linked list的题目,若不加特别说明...原创 2014-02-04 03:03:24 · 11153 阅读 · 1 评论 -
Leetcode全字符问题
目录 1、编号3 Longest Substring Without Repeating Characters 2、编号6 ZigZag Conversion 3、编号20 Valid Parentheses 4、编号28 Implement strStr() 5、编号31 Longest Valid Parentheses 6、编号42 Multiply String原创 2014-02-07 08:09:26 · 4160 阅读 · 0 评论 -
Leetcode全回文问题
目录: 1、编号5 5_Longest Palindromic Substring 2、编号9 Palindrome Number 3、编号126 Valid Palindrome 4、编号132 Palindrome Partitioning (DFS) 5、编号133 Palindrome Partitioning II (DP) 1、编号5 5_Longest Pal原创 2014-02-04 10:12:30 · 1604 阅读 · 0 评论 -
Leetcode全匹配问题
目录 1、编号11 Regular Expression Matching 2、编号29 Substring with Concatenation of All Words 3、编号43 Wildcard Matching 4、编号79 Word Search 1、编号11 Regular Expression Matching 2、编号29 Substri原创 2014-02-07 00:22:38 · 2348 阅读 · 0 评论 -
Leetcode全排列问题
目录 1、编号30 Next Permutation 2、编号44 Permutations 3、编号45 Permutations II 4、编号60 Permutation Sequence 1、编号30 Next Permutation Implement next permutation, which rearranges numbers into the lexicogr原创 2014-02-07 01:00:41 · 1453 阅读 · 0 评论 -
Leetcode全求和问题
目录 1、编号1 Two Sum Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they原创 2014-02-04 10:29:10 · 14298 阅读 · 2 评论 -
Leetcode全游戏问题
目录 1、编号34 Valid Sudoku Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially filled, where empty cells are filled with the character原创 2014-02-06 13:07:10 · 1944 阅读 · 0 评论 -
Leetcode全数字问题
目录 1、编号7 Reverse digits of an integer. 2、编号8 Stringto Integer ATOI 3、编号10 Container With Most Water 4、编号12 Integer To Roman 5、编号13 Roman To Integer 6、编号27 Divide Two Integers 7、编号37 Count and S原创 2014-02-07 12:05:02 · 3839 阅读 · 0 评论 -
Leetcode全组合问题
目录 1、编号17 Letter Combinations Of Phone Number Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the原创 2014-02-05 23:36:51 · 1818 阅读 · 0 评论 -
Leetcode全数组问题
目录 1、编号2 Median of Two Sorted Arrays There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be原创 2014-02-06 03:32:47 · 9268 阅读 · 0 评论 -
Leetcode全链表问题
目录 如果没有特殊说明,各题使用的链表数据结构如下: /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ 1、编号4原创 2014-02-05 10:50:27 · 2038 阅读 · 0 评论 -
Leetcode全矩阵问题
目录 1、编号48 Rotate Image You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Follow up: Could you do this in-place? 可以硬算转了九十度后的目标矩阵和原矩阵各元素的原创 2014-02-05 15:55:41 · 1926 阅读 · 0 评论