Giter Club home page Giter Club logo

leetcode-1's Introduction

LeetCode

Solution to LeetCode Problems in Python

S.No. Title Solutions Time Space Difficulty Related Topics Companies
1 Two Sum Solution O(n) O(n) Easy Array, Hash Table Adobe, Airbnb, Amazon, Apple, Bloomberg, Dropbox, Facebook, Linkedin, Microsoft, Uber, Yahoo, Yelp
2 Add Two Numbers Solution O(n) O(1) Medium Linked List, Math Adobe, Airbnb, Amazon, Bloomberg, Microsoft
3 Longest Substring Without Repeating Characters Solution O(n) O(n) Medium Hash Table, Two Pointers, String
9 Palindrome Number Solution O(1) O(1) Easy Math
11 Container With Most Water Solution O(n) O(1) Medium Array, Two Pointers
14 Longest Common Prefix Solution O(n^2) O(1) Easy String
27 Remove Element Solution O(n) O(1) Easy Array, Two Pointers
43 Multiply Strings Solution O(1) O(1) Medium Math, String
50 Pow(x, n) Solution O(logn) O(1) Medium Math, Binary Search
118 Pascal's Triangle Solution O(n^2) O(1) Easy Array
119 Pascal's Triangle II Solution O(n^2) O(k) Easy Array
121 Best Time to Buy and Sell Stock Solution O(n) O(1) Easy Array, Dynamic Programming
167 Two Sum II - Input array is sorted Solution O(n) O(1) Easy Array, Two Pointers, Binary Search
345 Reverse Vowels of a String Solution O(n) O(1) Easy Two Pointers, String
566 Reshape the Matrix Solution O(n) O(n^2) Easy Array
804 Unique Morse Code Words Solution O(n^2) O(n) Easy String
832 Flipping an Image Solution O(n^2) O(1) Easy Array
896 Monotonic Array Solution O(n) O(1) Easy Array
929 Unique Email Addresses Solution O(n) O(n) Easy String

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.