![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
文章平均质量分 92
rjx_1996
github:
https://github.com/jiaxin96
展开
-
LeetCode 143. Reorder List
LeetCode 143. Reorder List 刷题笔记描述 Given a singly linked list L: L0?L1?…?Ln-1?Ln, reorder it to: L0?Ln?L1?Ln-1?L2?Ln-2?… You must do this in-place without altering the nodes’ values. For原创 2017-09-14 00:16:04 · 243 阅读 · 0 评论 -
leetcode 494.-TargetSum 解题报告
leetcode 494.-TargetSum 解题报告题目 You are given a list of non-negative integers, a1, a2, …, an, and a target, S. Now you have 2 symbols + and -. For each integer, you should choose one from + and -原创 2017-10-14 21:32:24 · 412 阅读 · 0 评论 -
leetcoed 87 Scrcmble String 解题报告
# leetcoed 87 Scrcmble String 解题报告—**题目** Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible representatio原创 2017-11-28 21:20:37 · 261 阅读 · 0 评论 -
Leetcode 32 Longest Valid Parentheses 解题报告。
Leetcode 32 Longest Valid Parentheses 解题报告。题意 Given a string containing just the characters ‘(’ and ‘)’, find the length of the longest valid (well-formed) parentheses substring. For “(()”原创 2017-11-23 20:06:06 · 244 阅读 · 0 评论 -
Leetcode 135 Candy 解题报告
Leetcode 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:原创 2017-12-21 00:53:30 · 267 阅读 · 0 评论 -
Leetcode 376. Wiggle Subsequence 解题报告
Leetcode 376. Wiggle Subsequence 解题报告题目 A sequence of numbers is called a wiggle sequence if the differences between successive numbers strictly alternate between positive and negative. The firs原创 2017-12-24 11:50:49 · 212 阅读 · 0 评论 -
Leetcode 330. Patching Array
Leetcode 330. Patching Array 解题报告题目 Given a sorted positive integer array nums and an integer n, add/patch elements to the array such that any number in range [1, n] inclusive can be formed by t原创 2017-12-24 15:46:44 · 197 阅读 · 0 评论 -
Leetcode 502 IPO 解题报告
Leetcode 502 IPO 解题报告题目 Suppose LeetCode will start its IPO soon. In order to sell a good price of its shares to Venture Capital, LeetCode would like to work on some projects to increase its cap原创 2017-12-24 18:10:25 · 569 阅读 · 0 评论 -
Leetcode 76-MinimumWindowSubstring 解题报告
Leetcode 76-MinimumWindowSubstring 解题报告题目 Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). For example, S =原创 2017-12-07 22:47:27 · 187 阅读 · 0 评论 -
alpha-beta剪枝算法解决 486. Predict the Winner
零和博弈算法之极大极小搜索和α−β剪枝\alpha-\beta剪枝算法解决 486. Predict the Winner极大极小搜索算法介绍Minimax算法 又名极小化极大算法,是一种找出失败的最大可能性中的最小值的算法(即最小化对手的最大得益)。通常以递归形式来实现。Minimax算法常用于棋类等由两方较量的游戏和程序。该算法是一个**零总和**算法,即一方要在可选的选项中选择将其优势最大化原创 2017-10-12 11:26:43 · 1665 阅读 · 0 评论 -
Leetcode 64. Minimum Path Sum 解题报告
Leetcode 64. Minimum Path Sum 解题报告题目 Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. Note原创 2017-10-27 14:25:35 · 272 阅读 · 0 评论 -
leetcode 72. Edit Distance
leetcode 72. Edit Distance 解题报告描述 Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) You have the followin原创 2017-09-14 12:47:42 · 190 阅读 · 0 评论 -
Leetcode 152-MaximumProductSubarray 解题报告
Leetcode 152-MaximumProductSubarray 解题报告题目 Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array [2,3,-2,4], the con原创 2017-09-24 10:00:49 · 298 阅读 · 0 评论 -
Leetcode 53-Maximum Subarray 解题报告
Leetcode 53-Maximum Subarray 解题报告题目Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [-2,1,-3,4,-1,2,1,-5,4], the con原创 2017-09-24 09:20:57 · 324 阅读 · 0 评论 -
LeetCode 11. Container With Most Water解题报告
LeetCode 11. Container With Most Water解题报告原创 2017-09-09 00:33:21 · 256 阅读 · 0 评论 -
LeetCode 3. Longest Substring Without Repeating Characters 解题报告
LeetCode 3. Longest Substring Without Repeating Characters ,最大没有重复字符的子串长度原创 2017-09-09 18:59:39 · 171 阅读 · 0 评论 -
LeetCode 19. Remove Nth Node From End of List 解题
LeetCode 19. Remove Nth Node From End of List 解题删除链表倒数第n个原创 2017-09-09 22:57:45 · 176 阅读 · 0 评论 -
Leetcode 134. Gas Station 解题报告
Leetcode 134. Gas Station 解题报告题目 There are N gas stations along a circular route, where the >amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it costs cost[i]原创 2017-09-19 21:39:34 · 386 阅读 · 0 评论 -
Leetcode 464 can i win
Leetcode 464 can i win描述 In the “100 game,” two players take turns adding, to a rWhat if we change the game so that players cannot re-use integers? For example, two players might take turn原创 2017-10-10 00:23:15 · 575 阅读 · 0 评论 -
Leetcode 738. Monotone Increasing Digits
Leetcode 738. Monotone Increasing Digits题目 Given a non-negative integer N, find the largest number that is less than or equal to N with monotone increasing digits.(Recall that an integer has monotone原创 2017-12-31 10:47:42 · 355 阅读 · 0 评论