算法描述: Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. Exam ...
分类:
其他好文 时间:
2019-02-05 22:07:25
阅读次数:
153
算法描述: Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contain ...
分类:
其他好文 时间:
2019-02-02 17:02:41
阅读次数:
149
算法描述: Given a string containing only digits, restore it by returning all possible valid IP address combinations. Example: 解题思路:题目要求所有可能的结果,首先想到回溯法。重点有 ...
分类:
其他好文 时间:
2019-02-02 14:17:56
阅读次数:
209
题意 A string is finite sequence of characters over a non empty finite set Σ. In this problem, Σ is the set of lowercase letters. Substring, also called ...
分类:
其他好文 时间:
2019-02-01 23:30:09
阅读次数:
205
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. Example 1: Exampl ...
分类:
其他好文 时间:
2019-02-01 19:50:13
阅读次数:
125
题目: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: ...
分类:
其他好文 时间:
2019-02-01 17:16:05
阅读次数:
188
算法描述: Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserv ...
分类:
其他好文 时间:
2019-02-01 14:19:34
阅读次数:
158
算法描述: Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. Example 1: Examp ...
分类:
其他好文 时间:
2019-02-01 14:12:17
阅读次数:
161
Write a function that reverses a string. The input string is given as an array of characters char[]. Do not allocate extra space for another array, yo ...
分类:
其他好文 时间:
2019-01-30 20:53:52
阅读次数:
170
https://leetcode.com/problems/sort-characters-by-frequency/ Given a string, sort it in decreasing order based on the frequency of characters. Example ...
分类:
其他好文 时间:
2019-01-30 20:53:43
阅读次数:
199