Coder Social home page Coder Social logo

leetcode's Introduction

Leetcode

Most Tedious | Most Rewarding

Tree

Difficulty Title Solution Time Space
๐ŸŸข Balanced Binary Tree balanced_binary_tree.py O(N) O(h)
๐ŸŸข Path Sum path_sum.py O(N) O(h)
๐ŸŸข Same Tree same_tree.py O(N) O(1)
๐ŸŸข Symmetric Tree symmetric_tree.py O(N) O(1)
๐ŸŸข Maximum Depth of Binary Tree maximum_depth_of_binary_tree.py O(N) O(1)
๐ŸŸข ๐Ÿคฏ Convert Sorted Array to Binary Search Tree convert_sorted_array_to_binary_search_tree.py O(N) O(N)
๐ŸŸข Minimum Depth of Binary Tree minimum_depth_of_binary_tree.py O(N) O(1)
๐ŸŸข Lowest Common Ancestor of a Binary Search Tree lowest_common_ancestor_of_a_binary_search_tree.py O(N) O(1)
๐ŸŸข ๐Ÿคฏ Invert Binary Tree invert_binary_tree.py O(N) O(1)
๐ŸŸก Binary Tree Level Order Traversal II binary_tree_level_order_traversal_ii.py O(N) O(h)

Dynamic Programming

Key Concept: convert problem to sub-problem

Difficulty Title Solution Time Space
๐ŸŸข Climbing Stairs climbing_stairs.py O(N) O(1)
๐ŸŸข Maximum Subarray maximum_subarray.py O(N) O(1)
๐ŸŸก House Robber house_robber.py O(N) O(N)
๐ŸŸก Minimum Path Sum minimum_path_sum.py O(N^2) O(M*N)
๐ŸŸก Unique Paths unique_paths.py O(N^2) O(M*N)
๐ŸŸก Jump Game jump_game.py O(N) O(1)
๐ŸŸก Jump Game II jump_game_ii.py O(N) O(1)
๐ŸŸก Longest Increasing Subsequence longest_increasing_subsequence.py O(N^2) O(1)

Linked List

Difficulty Title Solution Time Space
๐ŸŸข Reverse Linked List reverse_linked_list.py O(N) O(1)

Sliding Window

Difficulty Title Solution Time Space
๐ŸŸก Longest Substring Without Repeating Characters longest_substring_without_repeating_characters.py O(N) O(1)

leetcode's People

Contributors

frexiona avatar

Watchers

 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.