Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PengFTang/Algorithms-in-Java
/ types & classes
Types & classes
31 in github.com/PengFTang/Algorithms-in-Java
⨍
Functions
116
◇
Types & classes
31
Class
BFS
iterative and recursive breadth first traversal of binary tree @author FLAG @param <T> Generic type
Tree/BFS.java:15
Class
BasicCalculator
Stack/BasicCalculator.java:6
Class
CoinChange
The change-making problem addresses the following question: how can a given amount of money be made with the least number of coins of given denominati
DynamicProgramming/CoinChange.java:9
Class
ContainerWithMostWater
Two-Pointer/ContainerWithMostWater.java:1
Class
Divide
Divide two integers using only subtraction, addition and bit operation @author FLAG
Math/Divide.java:13
Class
GCD
Implements greatest common divisor (GCD) using Euclidean's method that supports negative inputs @author FLAG
Math/GCD.java:6
Class
GenerateParenthesis
Backtracking/GenerateParenthesis.java:5
Class
GraphColoring
Backtracking/GraphColoring.java:3
Class
HeapSort
Sorting/HeapSort.java:5
Class
InplaceMerge
InplaceMerge.java:11
Class
KMP
An implementation of the KMP searching algorithm based on the understanding of this lecture: https://www.youtube.com/watch?v=GTJr8OvyEVQ @author FLAG
Searching/KMP.java:8
Class
LIS
DynamicProgramming/LIS.java:4
Class
LRUCache
Hashing/LRUCache.java:11
Class
ListNode
Hashing/LRUCache.java:13
Class
ListNode
__Supports/ListNode.java:3
Class
LongestIncreasingPath
Computes the length of the longest increasing path in a 2D matrix of integers. Valid directions include: left, right, up or down. @author FLAG
Graph/LongestIncreasingPath.java:13
Class
MergeSort
Sorting/MergeSort.java:5
Class
Methods
__Supports/Methods.java:3
Class
N_Queens
A backtracking method to solve N-Queen puzzle. The N-Queen puzzle is the problem of placing chess queens on a square chess board so that no two queen
Backtracking/N_Queens.java:9
Class
Prime
All about prime numbers @author FLAG
Math/Prime.java:12
Class
QuickSort
Sorting/QuickSort.java:6
Class
RangeMin
SegmentTree/RangeMin.java:3
Class
RangeSumMutable
SegmentTree/RangeSumMutable.java:7
Class
RotateArray
Math/RotateArray.java:1
Class
Sqrt
implements (int)Math.sqrt(x) with two different methods @author FLAG
Math/Sqrt.java:9
Class
SymmetricTree
Tree/SymmetricTree.java:3
Class
TreeNode
Tree/TreeNode.java:7
Class
TreeNode
SegmentTree/RangeSumMutable.java:13
Class
TreeNode
SegmentTree/RangeMin.java:8
Class
TreeNode
__Supports/TreeNode.java:6
Class
ValidPreorderSerialization
Tree/ValidPreorderSerialization.java:30