Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For the purpose of this problem, w ...
分类:
其他好文 时间:
2019-10-21 10:01:02
阅读次数:
79
Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set). Note: The solution set must not conta ...
分类:
其他好文 时间:
2019-10-21 09:28:45
阅读次数:
95
Given a linked list, remove the n-th node from the end of list and return its head. Example: Note: Given n will always be valid. Follow up: Could you ...
分类:
其他好文 时间:
2019-10-21 09:25:57
阅读次数:
82
Given two words (beginWord and endWord), and a dictionary's word list, find the length of shortest transformation sequence from beginWord to endWord, ...
分类:
其他好文 时间:
2019-10-21 09:18:22
阅读次数:
80
You are given a binary tree in which each node contains an integer value. Find the number of paths that sum to a given value. The path does not need t ...
分类:
其他好文 时间:
2019-10-20 11:16:59
阅读次数:
99
Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function ...
分类:
其他好文 时间:
2019-10-20 10:38:02
阅读次数:
80
其他专题 总有一些题目,是使用人类智慧硬解的,当然LC也不太为难你。 一道medium这么低的ac率因为啥,坑多呀。 42. Trapping Rain Water 头条同款题目,做的时候完全没准儿,一不小心就过了。 41. First Missing Positive 这道题说起规律,那么就是计数 ...
分类:
其他好文 时间:
2019-10-18 12:35:17
阅读次数:
71
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. N ...
分类:
其他好文 时间:
2019-10-16 11:19:18
阅读次数:
79
Learning A Discriminative Dictionary for Sparse Coding via Label Consistent K-SVD 学习一种为稀疏编码的判决字典的标签一致性k-svd算方法。除了使用训练数据的类标签外,还将标签信息和每一个字典项相关联,以在字典学习过程 ...
分类:
其他好文 时间:
2019-10-15 21:06:13
阅读次数:
212
Given a string s , find the length of the longest substring t that contains at most 2 distinct characters. Example 1: Example 2: ...
分类:
其他好文 时间:
2019-10-15 10:15:53
阅读次数:
83