Giter Club home page Giter Club logo

leetcode's Introduction

LeetCode

Solutions to LeetCode problems. I've tried to compile a list and classify problems by their types. The list below may not be updated, refer to filenames above.

Trees

  • Flatten Binary Tree to Linked List
  • Path Sum
  • Path Sum II
  • Minimum Depth of Binary Tree
  • Maximum Depth of Binary Tree
  • Convert Sorted Array to Binary Search Tree
  • Convert Sorted List to Binary Search Tree *
  • Symmetric Tree
  • Same Tree
  • Validate Binary Search Tree
  • Binary Tree Inorder Traversal
  • Binary Tree Zigzag Level Order Traversal
  • Binary Tree Level Order Traversal II
  • Binary Tree Level Order Traversal
  • Binary Tree Maximum Path Sum *
  • Balanced Binary Tree
  • Sum Root to Leaf Numbers
  • Unique Binary Search Trees
  • Unique Binary Search Trees II *
  • Recover Binary Search Tree *
  • Construct Binary Tree from Inorder and Postorder Traversal
  • Construct Binary Tree from Preorder and Inorder Traversal
  • Populating Next Right Pointers in Each Node *
  • Populating Next Right Pointers in Each Node II *

Graphs

  • Word Ladder *

Arrays, Lists

  • Remove Duplicates from Sorted Array
  • Remove Duplicates from Sorted Array II
  • Remove Duplicates from Sorted List
  • Remove Duplicates from Sorted List II
  • Merge Sorted Array
  • Merge Two Sorted Lists
  • Rotate List
  • Remove Nth Node From End of List *
  • Partition List
  • Reverse Linked List II *
  • Maximum Subarray
  • Jump Game
  • Jump Game *
  • Triangle
  • Pascal's Triangle
  • Pascal's Triangle II
  • Search in Rotated Sorted Array
  • Subsets *
  • Two Sum *
  • Search Insert Position
  • Remove Element
  • Swap Nodes in Pairs
  • Rotate Image *
  • Permutations
  • Spiral Matrix *
  • Spiral Matrix II
  • Search a 2D Matrix
  • Single Number
  • Single Number II * bitwise
  • Add Two Numbers
  • Insert Interval
  • Merge Intervals
  • Reverse Nodes in k-Group
  • Copy List with Random Pointer *
  • Set Matrix Zeroes
  • Gas Station
  • Next Permutation
  • Sort Colors
  • 3Sum *
  • 3Sum Closest *
  • Surrounded Regions
  • Search for a Range
  • Valid Sudoku

Dynamic Programming

  • Climbing Stairs
  • Unique Paths
  • Unique Paths II
  • Decode Ways *
  • Best Time to Buy and Sell Stock
  • Best Time to Buy and Sell Stock II
  • Best Time to Buy and Sell Stock III *
  • Minimum Path Sum
  • Candy
  • Interleaving String
  • Edit Distance

Recursion

  • Pow(x, n)
  • Gray Code
  • Roman to Integer
  • Integer to Roman
  • Plus One
  • Generate Parentheses *
  • Count and Say
  • Letter Combinations of a Phone Number
  • Restore IP Addresses
  • Combinations

Stacks

  • Valid Parentheses
  • Longest Valid Parentheses *
  • Largest Rectangle in Histogram *
  • Simplify Path

Strings

  • Longest Common Prefix
  • Longest Substring Without Repeating Characters
  • Length of Last Word
  • ZigZag Conversion
  • Add Binary
  • Interleaving String
  • Word Break
  • Anagrams

Others

  • Reverse Integer
  • Palindrome Number
  • Container With Most Water

leetcode's People

Contributors

arjunattam avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.