刷题
QLMX
网站:www.growai.cn
专栏:https://zhuanlan.zhihu.com/ai-growth
github: https://github.com/QLMX
展开
-
3. Longest Substring Without Repeating Characters(无重复字符的最长子串)
3. Longest Substring Without Repeating Characters(无重复字符的最长子串)1 问题描述Given a string, find the length of the longest substring without repeating characters.Example 1:Input: "abcabcbb"Output: 3 Expl...原创 2019-04-10 00:18:37 · 100 阅读 · 0 评论 -
187. Repeated DNA Sequences(重复的DNA序列)
187. Repeated DNA Sequences(重复的DNA序列)1 问题描述All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: “ACGAATTCCG”. When studying DNA, it is sometimes useful to ident...原创 2019-04-16 01:21:25 · 256 阅读 · 0 评论 -
199. Binary Tree Right Side View(侧面观察二叉树)
199. Binary Tree Right Side View(侧面观察二叉树)1 问题描述Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.给定一个二叉树,...原创 2019-03-28 23:30:55 · 230 阅读 · 0 评论 -
49.Group Anagrams同字符词语分组
49.Group Anagrams同字符词语分组1 描述Given an array of strings, group anagrams together.Example:Input: ["eat", "tea", "tan", "ate", "nat", "bat"],Output:[ ["ate","eat","tea"], ["nat","tan"], ["bat"...原创 2019-04-07 01:09:45 · 269 阅读 · 0 评论 -
290. Word Pattern(词语匹配)
290. Word Pattern(词语匹配)1 问题描述Given a pattern and a string str, find if str follows the same pattern.Here follow means a full match, such that there is a bijection between a letter in pattern and a n...原创 2019-04-05 15:49:46 · 316 阅读 · 0 评论 -
207. Course Schedule(课程安排)
207. Course Schedule(课程安排)1 问题描述There are a total of n courses you have to take, labeled from 0 to n-1.Some courses may have prerequisites, for example to take course 0 you have to first take course...原创 2019-04-05 15:48:00 · 275 阅读 · 0 评论 -
114. Flatten Binary Tree to Linked List(二叉树转链表)
114. Flatten Binary Tree to Linked List(二叉树转链表)1.问题描述Given a binary tree, flatten it to a linked list in-place.给定一个二叉树,将该二叉树 就地(in-place)转换为单链表。单链表中节点顺序为二叉树前序遍历顺序。For example, given the following ...原创 2019-03-25 23:33:39 · 183 阅读 · 0 评论 -
409. Longest Palindrome
409. Longest Palindrome1.问题描述Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters.已知一个只包括大小写字符的字符串,求用该字符串...原创 2019-02-13 21:39:08 · 135 阅读 · 0 评论 -
236.Lowest Common Ancestor of a Binary Tree(最近公共祖先)
236. Lowest Common Ancestor of a Binary Tree(最近公共祖先)1 问题描述Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree.According to the definition of LCA on Wikipedia: ...原创 2019-02-18 01:26:39 · 161 阅读 · 0 评论 -
113 Path Sum II(树的路径之和为一个常数)
113. Path Sum II1 问题描述Given a binary tree and a sum, find all root-to-leaf paths where each path’s sum equals the given sum.给定一个二叉树与整数sum,找出所有从根节点到叶结点的路径,这些路径上的节点值累加和为sumNote: A leaf is a node wit...原创 2019-02-14 21:28:14 · 226 阅读 · 0 评论 -
70. Climbing Stairs爬楼梯问题
70. Climbing Stairs爬楼梯问题1.问题描述You are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?在爬楼...原创 2019-07-16 23:58:09 · 142 阅读 · 0 评论