![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
pengjh24
练就有效
展开
-
LeetCode Problem #1
2018年9月9日 周日 #1. Two Sum 问题描述: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solut...原创 2018-09-09 15:58:02 · 130 阅读 · 0 评论 -
LeetCode Problem 861
。。。原创 2018-12-02 23:01:39 · 133 阅读 · 0 评论 -
LeetCode Problems 870
2018/11/25 870. Advantage Shuffle 问题描述 Given two arrays A and B of equal size, the advantage of A with respect to B is the number of indices i for which A[i] > B[i]. Return any permutation of A tha...原创 2018-11-23 16:10:24 · 169 阅读 · 0 评论 -
LeetCode Problems 903
2018/11/18 903. Valid Permutations for DI Sequence 问题描述: We are given S, a length n string of characters from the set {'D', 'I'}. (These letters stand for “decreasing” and “increasing”.) A valid permu...原创 2018-11-16 15:38:39 · 660 阅读 · 0 评论 -
LeetCode Problems #935
2018/11/11 935. Knight Dialer 问题描述: A chess knight can move as indicated in the chess diagram below: This time, we place our chess knight on any numbered key of a phone pad (indicated above), a...原创 2018-11-11 22:11:36 · 199 阅读 · 0 评论 -
LeetCode Problems #881
2018年11月4日 881. Boats to Save People 问题描述: The i-th person has weight people[i], and each boat can carry a maximum weight of limit. Each boat carries at most 2 people at the same time, provided the su...原创 2018-11-04 19:08:46 · 163 阅读 · 0 评论 -
LeetCode Problems #365
2018年10月21日 #365. Water and Jug Problem 问题描述: You are given two jugs with capacities x and y litres. There is an infinite amount of water supply available. You need to determine whether it is possi...原创 2018-10-21 20:52:40 · 182 阅读 · 0 评论 -
LeetCode Problems #135
2018年10月28日 #135. Candy 问题描述: There are N children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the following requirements: Eac...原创 2018-10-28 16:56:04 · 158 阅读 · 0 评论 -
LeetCode Problems #797
2018年9月30日 #797. All Paths From Source to Target 问题描述: Given a directed, acyclic graph of N nodes. Find all possible paths from node 0 to node N-1, and return them in any order. The graph is give...原创 2018-09-30 15:43:52 · 160 阅读 · 0 评论 -
LeetCode Problems #310
2018年10月14日 #310. Minimum Height Trees 问题描述: For a undirected graph with tree characteristics, we can choose any node as the root. The result graph is then a rooted tree. Among all possible rooted ...原创 2018-10-14 22:30:21 · 118 阅读 · 0 评论 -
LeetCode Problems #802
2018年10月7日 #802. Find Eventual Safe States 问题描述: In a directed graph, we start at some node and every turn, walk along a directed edge of the graph. If we reach a node that is terminal (that is, i...原创 2018-10-07 15:15:36 · 180 阅读 · 0 评论 -
LeetCode Problems #785
2018年9月23日 #785 Is Graph Bipartite? 问题描述: Given an undirected graph, return true if and only if it is bipartite. Recall that a graph is bipartite if we can split it's set of nodes into two indepen...原创 2018-09-23 20:53:57 · 253 阅读 · 0 评论 -
LeetCode Problems #3
2018年9月9日 #3. Longest Substring Without Repeating Characters 问题描述: Given a string, find the length of the longest substring without repeating characters. 样例: Given "abcabcbb", the answer is "abc"...原创 2018-09-09 19:49:56 · 122 阅读 · 0 评论 -
LeetCode Problem #2
2018年9月9日 #2. Add Two Numbers 问题描述: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single ...原创 2018-09-09 17:35:09 · 102 阅读 · 0 评论 -
Leetcode Problem 417
2018/12/9原创 2018-12-09 23:42:03 · 187 阅读 · 0 评论