Skip to content

Yuhanhannah/Algorithms

Repository files navigation

Algorithms

Sorting

  • Selection Sort Array
  • Merge Sort Array
  • Quick Sort Array
  • Quick Sort LinkedList
  • Rainbow Sort Array
  • Bucket Sort/Radix Sort/Counting Sort

Two Pointers

  • Binary Search
  • Find First Position
  • Find Last Position
  • Find K Cloest
  • Search in 2D Matrix
  • Search Sorted Array of Unkown Size
  • MergeSortedArray

Queue and Stack

  • Implement Queue with Two Stack
  • MaxStack
  • MinStack
  • Sort with Two Stack

LinkedList

  • Add Two Numbers
  • Add Two NumbersII
  • Find Middle NodeOfLinkedList
  • Insert Into A Sorted Circular LinkedList
  • LinkedList Cycle
  • LinkedList CycleII
  • Palindrome LinkedList
  • Remove LinkedList Elements
  • Reorder List
  • Reorder List
  • Reverse LinkedList Iterative
  • Reverse LinkedList Recursion

Tree

  • Balanced Binary Tree
  • Binary Tree Inorder Traversal
  • Binary Tree Right Side View
  • K-th Smallest In BST
  • Symmetric Tree
  • Validate Binary Search Tree
  • Closest Binary Search Tree Value
  • Two Sum BSTs
  • Two Sum - Input is a BST

BFS

  • Minimum Knight Moves
  • Average of Levels in Binary Tree
  • Binary Tree Level Order Traversal
  • Binary Tree Level Order Traversal II
  • Binary Tree Zigzag Level Order Traversal
  • Clone Graph
  • Course Schedule
  • Course Schedule II
  • Number of Islands
  • Rotting Oranges
  • Serialize and Deserialize Binary Tree

DFS

  • Subsets
  • Permutations
  • Permutations II
  • Next Permutation
  • Permutation Sequence
  • Generate Parentheses

Heap

  • KLargestInArrayMaxHeap
  • KLargestInArrayMinHeap
  • KthLargestInArrayQuickSelect

HashTable + PriorityQueue

  • Intersection of Two Arrays(Two Sets)
  • Intersection of Two Arrays(Binary Search)
  • Intersection of Two Arrays II
  • K Closest Points to Origin(Priority Queue)
  • K Closest Points to Origin(Sort)
  • Missing Number
  • Top K Frequent Elements
  • Top K Frequenters words

String

  • Char De-duplication
  • Find All Anagrams in a String
  • Longest Substring with At Most K Distinct Characters
  • Longest Substring with At Most Two Distinct Characters
  • Longest Substring Without Repeating Characters
  • Permutation in String
  • Remove Element
  • RemoveSpaces
  • ReOrderString
  • String Shuffling

Bit

  • Majority Element
  • Maximum Length of a Concatenated String with Unique Characters
  • Power of Two
  • Single Number
  • Sum of Two Integers
  • UTF-8 Validation

Recursion

  • N-Queens
  • Spiral Matrix
  • Spiral Matrix II

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages