Giter Club home page Giter Club logo

leetcode's Introduction

Practicing algorithm questions listed on LeetCode

Solved so far : 101

Array (46)

# Title Difficulty Note
0001 Two Sum Easy
0003 Longest Substring Without Repeating Characters Medium
0004 Median of Two Sorted Arrays Hard
0011 Container With Most Water Medium Two Pointers
0015 3Sum Medium Two Pointers
0016 3Sum Closest Medium Two Pointers
0018 4Sum Medium Two Pointers, Hash Table
0026 Remove Duplicates from Sorted Array Easy Two Pointers
0027 Remove Element Easy Two Pointers
0031 Next Permutation Medium
0033 Search in Rotated Sorted Array Medium Binary Search
0045 Jump Game II Medium Dynamic Programming, Greedy
0046 Permutations Medium Backtracking
0053 Maximum Subarray Easy Divide and Conquer, Dynamic Programming
0090 Subsets II Medium Backtracking, Bit Manipulation
0121 Best Time to Buy and Sell Stock Easy Dynamic Programming
0152 Maximum Product Subarray Medium Dynamic Programming
0155 Min Stack Easy Stack, Design
0167 Two Sum II - Input array is sorted Easy Two Pointers, Binary Search
0169 Majority Element Easy Hash Table, Sorting, Counting
0215 Kth Largest Element in an Array Medium Divide and Conquer, Sorting, Heap
0221 Maximal Square Medium Dynamic Programming, Matrix
0238 Product of Array Except Self Medium Prefix Sum
0300 Longest Increasing Subsequence Medium Binary Search,Dynamic Programming
0347 Top K Frequent Elements Medium Hash Table, Sorting, Counting, Heap
0384 Shuffle an Array Medium Math Randomized
0414 Third Maximum Number Easy
0496 Next Greater Element I Easy Hash Table, Stack
0540 Single Element in a Sorted Array Medium Binary Search
0605 Can Place Flowers East
1313 Decompress Run-Length Encoded List Easy
1365 How Many Numbers Are Smaller Than the Current Number Easy Hash Table
1389 Create Target Array in the Given Order Easy
1431 Kids With the Greatest Number of Candies Easy
1464 Maximum Product of Two Elements in an Array Easy
1465 Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts Medium
1470 Shuffle the Array Easy
1476 Subrectangle Queries Medium
1480 Running Sum of 1d Array Easy
1512 Number of Good Pairs Easy Hash Table, Math
1672 Richest Customer Wealth Easy
1769 Minimum Number of Operations to Move All Balls to Each Box Medium
1773 Count Items Matching a Rule Easy String
1854 Maximum Population Year Easy Counting
1909 Remove One Element to Make the Array Strictly Increasing Easy
1920 Build Array from Permutation Easy

โ€‹

Linked List (7)

# Title Difficulty Note
0002 Add Two Numbers Medium
0019 Remove Nth Node From End of List Medium
0021 Merge Two Sorted Lists Easy Recursion
0023 Merge k Sorted Lists Hard Divide and Conquer, Merge Sort
0025 Reverse Nodes in k-Group Hard
0206 Reverse Linked List Easy Recursion
1290 Convert Binary Number in a Linked List to Integer Easy

Math (9)

# Title Difficulty Note
0007 Reverse Integer Easy
0009 Palindrome Number Easy
0029 Divide Two Numbers Medium Bit Manipulation
0050 Pow(x, n) Medium Recursion
0149 Max Points on a Line Hard Hash Table
0168 Excel Sheet Column Title Easy
0171 Excel Sheet Column Number Easy
1281 Subtract the Product and Sum of Digits of an Integer Easy
1828 Queries on Number of Points Inside a Circle Easy

String (16)

# Title Difficulty Note
0005 Longest Palindromic Substring Medium Dynamic Programming
0008 String to Integer (atoi) Medium Math
0014 Longest Common Prefix Easy
0020 Valid Parenthesis Easy Stack
0022 Generate Parentheses Medium Backtracking, Dynamic Programming
0065 Valid Number Hard Math
0091 Decode Ways Medium Dynamic Programming
0125 Valid Palindrome Easy Two Pointers
0451 Sort Characters By Frequency Medium Hash Table, Sorting, Counting
0763 Partition Labels Medium Hash Table, Two Pointers, Greedy
0859 Buddy Strings Easy
1108 Defanging an IP Address Easy
1221 Split a String in Balanced Strings Easy Greedy
1678 Goal Parser Interpretation Easy
1689 Partitioning Into Minimum Number Of Deci-Binary Numbers Medium
1880 Check if Word Equals Summation of Two Words Easy

Hash Table (7)

# Title Difficulty Note
0012 Integer to Roman Medium String, Math
0049 Group Anagrams Medium String, Sorting
0133 Clone Graph Medium Graph, DFS, BFS
0187 Repeated DNA Sequences Medium String, Sliding Window, Bit Manipulation
0692 Top K Frequent Words Medium String, Sorting, Counting
0771 Jewels and Stones Easy
1078 Occurrences After Bigram Easy

Tree (7)

# Title Difficulty Note
0098 Validate Binary Search Tree Medium DFS, BFS
0102 Binary Tree Level Order Traversal Medium BFS
0104 Maximum Depth of Binary Tree Easy DFS, BFS
0107 Binary Tree Level Order Traversal 2 Medium BFS
0572 Subtree of Another Tree Easy DFS, String Matching
0938 Range Sum of BST Easy
1302 Deepest Leaves Sum Medium

Sort (2)

# Title Difficulty Note
1370 Increasing Decreasing String Easy
1528 Shuffle String Easy

Bit Manipulation (2)

# Title Difficulty Note
1342 Number of Steps to Reduce a Number to Zero Easy
1720 Decode XORed Array Easy

Design (3)

# Title Difficulty Note
0232 Implement Queue using Stacks Easy
1603 Design Parking System Easy
1656 Design an Ordered Stream Easy

Shell (2)

# Title Difficulty Note
0193 Valid Phone Numbers Easy
0195 Tenth Line Easy

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.