Sara

  • Home

  • Tags

  • Categories

  • Archives

  • Search

LeetCode_Clone Graph

Posted on 2019-03-14 | In LeetCode

Clone Graph

Given a reference of a node in a connected undirected graph, return a deep copy (clone) of the graph. Each node in the graph contains a val (int) and a list (List[Node]) of its neighbors.
(深度拷贝图)

Read more »

LeetCode_Palindrome Partitioning II

Posted on 2019-03-14 | In LeetCode

Palindrome Partitioning II

Given a string s, partition s such that every substring of the partition is a palindrome. Return the minimum cuts needed for a palindrome partitioning of s.
(最少切分字符串,每个子串都是回文序列)

Read more »

LeetCode_Palindrome Partitioning

Posted on 2019-03-14 | In LeetCode

Palindrome Partitioning

Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s.
(切分字符串,每个子串都是回文序列)

Read more »

LeetCode_Surrounded Regions

Posted on 2019-03-13 | Edited on 2019-03-14 | In LeetCode

Surrounded Regions

Given a 2D board containing ‘X’ and ‘O’ (the letter O), capture all regions surrounded by ‘X’. A region is captured by flipping all ‘O’s into ‘X’s in that surrounded region.
(包围区域)

Read more »

LeetCode_Sum Root to Leaf Numbers

Posted on 2019-03-13 | In LeetCode

Sum Root to Leaf Numbers

Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 which represents the number 123. Find the total sum of all root-to-leaf numbers.
(树型数值之和)

Read more »

LeetCode_Longest Consecutive Sequence

Posted on 2019-03-13 | In LeetCode

Longest Consecutive Sequence

Given an unsorted array of integers, find the length of the longest consecutive elements sequence. Your algorithm should run in O(n) complexity.
(时间复杂度为O(n),乱序数组中找到最长连续的数列)

Read more »

LeetCode_Word Ladder II

Posted on 2019-03-13 | Edited on 2019-03-27 | In LeetCode

Word Ladder II

Given two words (beginWord and endWord), and a dictionary’s word list, find the length of shortest transformation sequence from beginWord to endWord.
(词语阶梯)

Read more »

LeetCode_Word Ladder

Posted on 2019-03-13 | In LeetCode

Word Ladder

Given two words (beginWord and endWord), and a dictionary’s word list, find the length of shortest transformation sequence from beginWord to endWord.
(词语阶梯)

Read more »

LeetCode_Valid Palindrome

Posted on 2019-03-13 | In LeetCode

Valid Palindrome

Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
(回文字符串)

Read more »

LeetCode_Binary Tree Maximum Path Sum

Posted on 2019-03-13 | In LeetCode

Binary Tree Maximum Path Sum

Given a non-empty binary tree, find the maximum path sum. For this problem, a path is defined as any sequence of nodes from some starting node to any node in the tree along the parent-child connections. The path must contain at least one node and does not need to go through the root.
(二叉树最大路径和)

Read more »
1…789…21

Sara Han

207 posts
4 categories
40 tags
© 2019 Sara Han
Powered by Hexo v3.8.0
|
Theme – NexT.Mist v6.4.2