算法
文章平均质量分 79
legendtroy
这个作者很懒,什么都没留下…
展开
-
算法——Longest Substring Without Repeating Characters
原题目摘自leetcode网站Longest Substring Without Repeating Characters题目:Given a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the原创 2017-02-26 22:56:42 · 180 阅读 · 0 评论 -
算法W12——Remove Nth Node From End of List
题目:leetcode 19.Remove Nth Node From End of List链接:https://leetcode.com/problems/remove-nth-node-from-end-of-list/#/description原题:Given a linked list, remove the nth node from the end of list a原创 2017-05-21 14:36:20 · 187 阅读 · 0 评论 -
算法w13——Swap Nodes in Pairs
题目:leetcode 24.Swap Nodes in Pairs链接:https://leetcode.com/problems/swap-nodes-in-pairs/#/description原题:Given a linked list, swap every two adjacent nodes and return its head.For example,原创 2017-05-21 16:08:29 · 422 阅读 · 0 评论 -
算法W14——Permutations
题目:Permutations连接:https://leetcode.com/problems/permutations/#/description原题:Given a collection of distinct numbers, return all possible permutations.For example,[1,2,3] have the follo原创 2017-06-02 16:28:04 · 150 阅读 · 0 评论 -
算法W15——Permutations II
题目:Permutations II连接:https://leetcode.com/problems/permutations-ii/#/description原题:Given a collection of numbers that might contain duplicates, return all possible unique permutations.Fo原创 2017-06-02 16:33:02 · 154 阅读 · 0 评论 -
算法W18——Minimum Path Sum
题目:Minimum Path Sum连接:https://leetcode.com/problems/minimum-path-sum/#/description原题:Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimize原创 2017-06-28 16:13:14 · 170 阅读 · 0 评论 -
算法W16——Course Schedule
题目:Course Schedule链接:https://leetcode.com/problems/course-schedule/#/description原题:There are a total of n courses you have to take, labeled from 0 to n - 1.Some courses may have prereq原创 2017-06-12 22:47:46 · 211 阅读 · 0 评论 -
算法w11—— Generate Parentheses
题目:leetcode.22 Generate Parentheses链接:https://leetcode.com/problems/generate-parentheses/#/description原题:Given n pairs of parentheses, write a function to generate all combinations of well-fo原创 2017-05-07 22:17:40 · 188 阅读 · 0 评论 -
算法w9——Combination Sum
题目:leetcode 39. Combination Sum地址:https://leetcode.com/problems/combination-sum/#/description原题:Given a set of candidate numbers (C) (without duplicates) and a target number (T), find all un原创 2017-04-24 10:28:57 · 147 阅读 · 0 评论 -
算法w2——Regular Expression Matching(leetcode 10)
题目:Regular Expression Matching(leetcode 10)链接:https://leetcode.com/problemset/algorithms/Implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*原创 2017-03-05 22:24:58 · 275 阅读 · 0 评论 -
算法w4——Container With Most Water
题目:leetcode 11. Container With Most Water 链接:https://leetcode.com/problems/container-with-most-water/#/description 原题: Given n non-negative integers a1, a2, …, an, where each represents a point at c原创 2017-03-19 18:28:19 · 303 阅读 · 0 评论 -
算法w3——Longest Palindromic Substring(leetcode 5)
题目: Longest Palindromic Substring链接:https://leetcode.com/problems/longest-palindromic-substring/?tab=DescriptionGiven a string s, find the longest palindromic substring in s. You may assume th原创 2017-03-12 23:07:09 · 157 阅读 · 0 评论 -
算法w7——4Sum
题目:leetcode18 4Sum链接:https://leetcode.com/problems/4sum/#/description原题:Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all un原创 2017-04-09 22:06:06 · 160 阅读 · 0 评论 -
算法w5——ZigZag Conversion
题目:ZigZag Conversion连接:https://leetcode.com/problems/zigzag-conversion/#/description原题:The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you原创 2017-03-27 11:57:15 · 240 阅读 · 0 评论 -
算法w10—— Valid Sudoku
题目:leetcode 36.Valid Sudoku地址:https://leetcode.com/problems/valid-sudoku/#/description原题:Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be原创 2017-05-01 21:12:03 · 132 阅读 · 0 评论 -
算法W17——Continuous Subarray Sum
题目:523. Continuous Subarray Sum连接:https://leetcode.com/problems/continuous-subarray-sum/#/description原题:Given a list of non-negative numbers and a target integer k, write a function to check原创 2017-06-28 15:44:37 · 165 阅读 · 0 评论