Coder Social home page Coder Social logo

leetcode's Introduction

My Leetcode solutions categorized by topics.

LeetCode Topics

Stack

0143-reorder-list
0145-binary-tree-postorder-traversal
0150-evaluate-reverse-polish-notation
0155-min-stack
0776-n-ary-tree-postorder-traversal
2470-removing-stars-from-a-string

Design

0155-min-stack

Linked List

0019-remove-nth-node-from-end-of-list
0021-merge-two-sorted-lists
0141-linked-list-cycle
0143-reorder-list
0206-reverse-linked-list
0328-odd-even-linked-list
2216-delete-the-middle-node-of-a-linked-list

Recursion

0021-merge-two-sorted-lists
0143-reorder-list
0206-reverse-linked-list

Two Pointers

0011-container-with-most-water
0019-remove-nth-node-from-end-of-list
0141-linked-list-cycle
0143-reorder-list
0151-reverse-words-in-a-string
0283-move-zeroes
0392-is-subsequence
1798-max-number-of-k-sum-pairs
2216-delete-the-middle-node-of-a-linked-list

Array

0011-container-with-most-water
0036-valid-sudoku
0046-permutations
0049-group-anagrams
0128-longest-consecutive-sequence
0150-evaluate-reverse-polish-notation
0238-product-of-array-except-self
0283-move-zeroes
0347-top-k-frequent-elements
0605-can-place-flowers
0948-sort-an-array
1319-unique-number-of-occurrences
1329-minimum-cost-to-move-chips-to-the-same-position
1333-sort-the-jumbled-numbers
1392-find-the-difference-of-two-arrays
1496-lucky-numbers-in-a-matrix
1556-make-two-arrays-equal-by-reversing-subarrays
1741-sort-array-by-increasing-frequency
1798-max-number-of-k-sum-pairs
1833-find-the-highest-altitude
2255-minimum-swaps-to-group-all-1s-together-ii
2502-sort-the-people
2727-number-of-senior-citizens

Hash Table

0036-valid-sudoku
0049-group-anagrams
0128-longest-consecutive-sequence
0141-linked-list-cycle
0347-top-k-frequent-elements
1319-unique-number-of-occurrences
1392-find-the-difference-of-two-arrays
1556-make-two-arrays-equal-by-reversing-subarrays
1741-sort-array-by-increasing-frequency
1798-max-number-of-k-sum-pairs
2502-sort-the-people

String

0049-group-anagrams
0058-length-of-last-word
0151-reverse-words-in-a-string
0392-is-subsequence
1341-split-a-string-in-balanced-strings
2470-removing-stars-from-a-string
2502-sort-the-people
2727-number-of-senior-citizens

Sorting

0049-group-anagrams
0347-top-k-frequent-elements
0948-sort-an-array
1333-sort-the-jumbled-numbers
1556-make-two-arrays-equal-by-reversing-subarrays
1741-sort-array-by-increasing-frequency
1798-max-number-of-k-sum-pairs
2502-sort-the-people

Divide and Conquer

0347-top-k-frequent-elements
0948-sort-an-array

Heap (Priority Queue)

0347-top-k-frequent-elements
0948-sort-an-array

Bucket Sort

0347-top-k-frequent-elements
0948-sort-an-array

Counting

0347-top-k-frequent-elements
1341-split-a-string-in-balanced-strings

Quickselect

0347-top-k-frequent-elements

Math

0150-evaluate-reverse-polish-notation
1329-minimum-cost-to-move-chips-to-the-same-position
1362-airplane-seat-assignment-probability

Tree

0100-same-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0145-binary-tree-postorder-traversal
0226-invert-binary-tree
0235-lowest-common-ancestor-of-a-binary-search-tree
0450-delete-node-in-a-bst
0543-diameter-of-binary-tree
0572-subtree-of-another-tree
0776-n-ary-tree-postorder-traversal
0783-search-in-a-binary-search-tree
0904-leaf-similar-trees
1544-count-good-nodes-in-binary-tree
2493-reverse-odd-levels-of-binary-tree

Depth-First Search

0100-same-tree
0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0145-binary-tree-postorder-traversal
0226-invert-binary-tree
0235-lowest-common-ancestor-of-a-binary-search-tree
0543-diameter-of-binary-tree
0572-subtree-of-another-tree
0776-n-ary-tree-postorder-traversal
0904-leaf-similar-trees
1544-count-good-nodes-in-binary-tree
2493-reverse-odd-levels-of-binary-tree

Breadth-First Search

0100-same-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0226-invert-binary-tree
1544-count-good-nodes-in-binary-tree
2493-reverse-odd-levels-of-binary-tree

Binary Tree

0100-same-tree
0102-binary-tree-level-order-traversal
0104-maximum-depth-of-binary-tree
0110-balanced-binary-tree
0145-binary-tree-postorder-traversal
0226-invert-binary-tree
0235-lowest-common-ancestor-of-a-binary-search-tree
0450-delete-node-in-a-bst
0543-diameter-of-binary-tree
0572-subtree-of-another-tree
0783-search-in-a-binary-search-tree
0904-leaf-similar-trees
1544-count-good-nodes-in-binary-tree
2493-reverse-odd-levels-of-binary-tree

Matrix

0036-valid-sudoku
1496-lucky-numbers-in-a-matrix

Greedy

0011-container-with-most-water
0605-can-place-flowers
1329-minimum-cost-to-move-chips-to-the-same-position
1341-split-a-string-in-balanced-strings

Prefix Sum

0238-product-of-array-except-self
1833-find-the-highest-altitude

Union Find

0128-longest-consecutive-sequence

Merge Sort

0948-sort-an-array

Radix Sort

0948-sort-an-array

Counting Sort

0948-sort-an-array

Dynamic Programming

0392-is-subsequence
1362-airplane-seat-assignment-probability

Binary Search Tree

0235-lowest-common-ancestor-of-a-binary-search-tree
0450-delete-node-in-a-bst
0783-search-in-a-binary-search-tree

String Matching

0572-subtree-of-another-tree

Hash Function

0572-subtree-of-another-tree

Simulation

2470-removing-stars-from-a-string

Backtracking

0046-permutations

Brainteaser

1362-airplane-seat-assignment-probability

Probability and Statistics

1362-airplane-seat-assignment-probability

Sliding Window

2255-minimum-swaps-to-group-all-1s-together-ii

leetcode's People

Contributors

yossev 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.