Here is my collection of solutions to leetcode problems.

Related code can be found in this repo: https://github.com/zhuli19901106/leetcode

LeetCode - Course Schedule

LeetCode - Reverse Linked List

LeetCode - Isomorphic Strings

LeetCode - Count Primes

LeetCode - Remove Linked List Elements

LeetCode - Happy Number

LeetCode - Bitwise AND of Numbers Range

LeetCode - Number of Islands

LeetCode - Binary Tree Right Side View

LeetCode - House Robber

LeetCode - Number of 1 Bits

LeetCode - Reverse Bits

LeetCode - Rotate Array

LeetCode - Best Time to Buy and Sell Stock IV

LeetCode - Repeated DNA Sequences

LeetCode - Largest Number

LeetCode - Dungeon Game

LeetCode - Binary Search Tree Iterator

LeetCode - Factorial Trailing Zeroes

LeetCode - Excel Sheet Column Number

LeetCode - Majority Element

LeetCode - Excel Sheet Column Title

LeetCode - Fraction to Recurring Decimal

LeetCode - Compare Version Numbers

LeetCode - Maximum Gap

LeetCode - Find Peak Element

LeetCode - Intersection of Two Linked Lists

LeetCode - Min Stack

LeetCode - Find Minimum in Rotated Sorted Array II

LeetCode - Find Minimum in Rotated Sorted Array

LeetCode - Reverse Words in a String

LeetCode - Regular Expression Matching

LeetCode - Sudoku Solver

LeetCode - Implement strStr()

LeetCode - Wildcard Matching

LeetCode - Word Ladder II

LeetCode - Word Ladder

LeetCode - Word Break II

LeetCode - Word Break

LeetCode - Valid Number

LeetCode - Surrounded Regions

LeetCode - Substring with Concatenation of All Words

LeetCode - Scramble String

LeetCode - Word Search

LeetCode - Reverse Nodes in k-Group

LeetCode - Palindrome Partitioning II

LeetCode - Palindrome Partitioning

LeetCode - Merge Interval

LeetCode - Minimum Window Substring

LeetCode - Maximal Rectangle

LeetCode - Max Points on a Line

LeetCode - Largest Rectangle in Histogram

LeetCode - Jump Game II

LeetCode - Jump Game

LeetCode - Interleaving String

LeetCode - Gas Station

LeetCode - Evaluate Reverse Polish Notation

LeetCode - Edit Distance

LeetCode - Clone Graph

LeetCode - Candy

LeetCode - 3Sum Closest

LeetCode - Set Matrix Zeroes

LeetCode - Search for a Range

LeetCode - N-Queens II

LeetCode - N-Queens

LeetCode - LRU Cache

LeetCode - Longest Valid Parentheses

LeetCode - Insert Interval

LeetCode - Flatten Binary Tree to Linked List

LeetCode - Convert Sorted List to Binary Search Tree

LeetCode - Binary Tree Maximum Path Sum

LeetCode - Trapping Rain Water

LeetCode - Unique Binary Search Trees II

LeetCode - Text Justification

LeetCode - String to Integer (atoi)

LeetCode - Longest Palindromic Substring

LeetCode - Permutation Sequence

LeetCode - First Missing Positive

LeetCode - Distinct Subsequences

LeetCode - Container With Most Water

LeetCode - 4Sum

LeetCode - Sort List

LeetCode - Insertion Sort List

LeetCode - Binary Tree Postorder Traversal

LeetCode - Binary Tree Preorder Traversal

LeetCode - Reorder List

LeetCode - Linked List Cycle II

LeetCode - Linked List Cycle

LeetCode - Copy List with Random Pointer

LeetCode - Single Number II

LeetCode - Single Number

LeetCode - Sum Root to Leaf Numbers

LeetCode - Longest Consecutive Sequence

LeetCode - Valid Palindrome

LeetCode - Best Time to Buy and Sell Stock III

LeetCode - Best Time to Buy and Sell Stock II

LeetCode - Best Time to Buy and Sell Stock

LeetCode - Triangle

LeetCode - Pascal's Triangle II

LeetCode - Pascal's Triangle

LeetCode - Populating Next Right Pointers in Each Node II

LeetCode - Populating Next Right Pointers in Each Node

LeetCode - Path Sum II

LeetCode - Path Sum

LeetCode - Minimum Depth of Binary Tree

LeetCode - Balanced Binary Tree

LeetCode - Convert Sorted Array to Binary Search Tree

LeetCode - Binary Tree Level Order Traversal II

LeetCode - Construct Binary Tree from Inorder and Postorder Traversal

LeetCode - Construct Binary Tree from Preorder and Inorder Traversal

LeetCode - Maximum Depth of Binary Tree

LeetCode - Binary Tree Zigzag Level Order Traversal

LeetCode - Binary Tree Level Order Traversal

LeetCode - Symmetric Tree

LeetCode - Same Tree

LeetCode - Recover Binary Search Tree

LeetCode - Validate Binary Search Tree

LeetCode - Unique Binary Search Trees

LeetCode - Binary Tree Inorder Traversal

LeetCode - Restore IP Addresses

LeetCode - Reverse Linked List II

LeetCode - Subsets II

LeetCode - Decode Ways

LeetCode - Gray Code

LeetCode - Merge Sorted Array

LeetCode - Partition List

LeetCode - Remove Duplicates from Sorted List II

LeetCode - Remove Duplicates from Sorted List

LeetCode - Search in Rotated Sorted Array II

LeetCode - Remove Duplicates from Sorted Array II

LeetCode - Subsets

LeetCode - Combinations

LeetCode - Sort Colors

LeetCode - Search a 2D Matrix

LeetCode - Simplify Path

LeetCode - Climbing Stairs

LeetCode - Sqrt(x)

LeetCode - Plus One

LeetCode - Add Binary

LeetCode - Merge Two Sorted Lists

LeetCode - Minimum Path Sum

LeetCode - Unique Paths II

LeetCode - Unique Paths

LeetCode - Rotate List

LeetCode - Spiral Matrix II

LeetCode - Length of Last Word

LeetCode - Spiral Matrix

LeetCode - Maximum Subarray

LeetCode - Pow(x, n)

LeetCode - Anagrams

LeetCode - Rotate Image

LeetCode - Permutations II

LeetCode - Permutations

LeetCode - Multiply Strings

LeetCode - Combination Sum II

LeetCode - Combination Sum

LeetCode - Count and Say

LeetCode - Valid Sudoku

LeetCode - Search Insert Position

LeetCode - Search in Rotated Sorted Array

LeetCode - Next Permutation

LeetCode - Divide Two Integers

LeetCode - Remove Element

LeetCode - Remove Duplicates from Sorted Array

LeetCode - Swap Nodes in Pairs

LeetCode - Merge k Sorted Lists

LeetCode - Generate Parentheses

LeetCode - Valid Parentheses

LeetCode - Remove Nth Node From End of List

LeetCode - Letter Combinations of a Phone Number

LeetCode - 3Sum

LeetCode - Longest Common Prefix

LeetCode - Roman to Integer

LeetCode - Integer to Roman

LeetCode - Palindrome Number

LeetCode - Reverse Integer

LeetCode - ZigZag Conversion

LeetCode - Add Two Numbers

LeetCode - Longest Substring Without Repeating Characters

LeetCode - Median of Two Sorted Arrays

LeetCode - Two Sum

Solution to LeetCode Problem Set的更多相关文章

  1. LeetCode Problem 90. Subsets II

    python solution 123456789101112131415161718192021222324252627 class (object): def subsetsWithDup(sel ...

  2. an optimal solution to the problem

    http://www.personal.kent.edu/~rmuhamma/Algorithms/MyAlgorithms/Greedy/greedyIntro.htm Greedy Introdu ...

  3. leetcode problem 42 -- Trapping Rain Water

    Given n non-negative integers representing an elevation map where the width of each bar is 1, comput ...

  4. leetcode problem (5) Longest Palindromic Substring

    最长回文子串: 1. 暴力搜索   时间复杂度O(n^3) 2. 动态规划 dp[i][j] 表示子串s[i…j]是否是回文 初始化:dp[i][i] = true (0 <= i <= ...

  5. leetcode problem (2-4)

    Problem 2 --- Add Two Numbers 简单的模拟题. Problem 3 --- Longest Substring Without Repeating Characters 题 ...

  6. LeetCode Problem 2:Two Sum

    描述: Given an array of integers, find two numbers such that they add up to a specific target number. ...

  7. LeetCode Problem 9:Palindrome Number回文数

    描述:Determine whether an integer is a palindrome. Do this without extra space. Some hints: Could nega ...

  8. LeetCode Problem 169: Majority Element查找多数元素

    描述:Given an array of size n, find the majority element. The majority element is the element that app ...

  9. 【436】Solution for LeetCode Problems

    Coding everyday. ^_^ 1. Two Sum 重点知识:指针可以存储数值,通过 malloc 新建数组 int* returnSize:Size of the return arra ...

随机推荐

  1. 面向对象编程(OOP)、面向组件编程(COP)、面向方面编程(AOP)和面向服务编程(SOP)

    http://blog.csdn.net/hjf19790118/article/details/6919265 1.什么是面向对象编程(Object-Oriented Programming)? 面 ...

  2. Maximum Profit

    Maximum Profit You can obtain profits from foreign exchange margin transactions. For example, if you ...

  3. 【遥感专题系列】微波遥感(二、合成孔径雷达SAR基础)

    目前使用最广的成像雷达系统就是合成孔径雷达(Synthetic Aperture Radar:SAR),SAR几乎成为了雷达的代名词.本文从应用角度介绍SAR系统的基本知识. 本文主要包括: SAR基 ...

  4. eclipse集成tomcat 部署项目设置

    ============================================================= 1. 下载安装tomcat插件 ====================== ...

  5. 【luogu P3385 负环】 模板

    题目链接:https://www.luogu.org/problemnew/show/P3385 SPFA判负环. 这个题必须卡一卡才过得去. 按理说对于一个负环点应当是入队 > n次. 但是这 ...

  6. Android学习笔记_8_使用SharedPreferences存储数据

    1.SharedPreferences介绍: Android平台给我们提供了一个SharedPreferences类,它是一个轻量级的存储类,特别适合用于保存软件配置参数.使用SharedPrefer ...

  7. HDU1069 Monkey and Banana

    HDU1069 Monkey and Banana 题目大意 给定 n 种盒子, 每种盒子无限多个, 需要叠起来, 在上面的盒子的长和宽必须严格小于下面盒子的长和宽, 求最高的高度. 思路 对于每个方 ...

  8. 简单实用的.htaccess文件配置

    .htaccess 文件 (Hypertext Access file) 是Apache Web服务器的一个非常强大的配置文件,对于这个文件,Apache有一堆参数可以让你配置出几乎随心所欲的功能.. ...

  9. 7.Vue-Quill-Editor图片插入自定义

    Vue-Quill-Editor图片插入自定义 前言: 因为在项目中前端采用了Vue来实现,正好用到了富文本编辑器这一块,于是,经过技术上的选择,决定使用Vue-Quill-Editor. 使用的过程 ...

  10. [NOI2015]程序自动分析(并查集)

    题目描述 在实现程序自动分析的过程中,常常需要判定一些约束条件是否能被同时满足. 考虑一个约束满足问题的简化版本:假设x1,x2,x3...代表程序中出现的变量,给定n个形如xi=xj或xi≠xj的变 ...