This project is a collection of fully functional examples written in Java programming language, showing how to implement 14 typical algorithms && data Structures from sketch. It is created with ambition to make a short, complete and realistic DSA study guide for coding interviews as well as competitive programming.
LL | BST |
---|---|
E e Node next |
E e Node left Node right |
Node head int size |
Node root int size |
Set | Map |
---|---|
void add(E) void remove(E) boolean contains(E) int getSize() boolean isEmpty() |
void add(K, V) V remove(K) boolean contains(K) V get(K) void set(K,V) int getSize() boolean isEmpty() |
HashSet SortedSet, TreeSet ConcurrentSkipListSet
HashMap TreeMap ConcurrentHashMap
# | Title | Code | Document | Video | Difficulty | Tag |
---|---|---|---|---|---|---|
1 | Absolute value | Theory | :green_square: Easy | abs() | ||
2 | Celsius To Fahrenheit | Theory | :green_square: Easy | Math | ||
3 | Roots of Quadratic equation | Theory | :green_square: Easy | Math | ||
4 | Factorial Of Number | :green_square: Easy | Math | |||
5 | Count digits in a factorial | :green_square: Easy | Factorial, Math | |||
6 | Series GP | :green_square: Easy | Basic Math | |||
7 | Prime Number | :green_square: Easy | Basic Math | |||
8 | Exactly 3 Divisors | Theory | :green_square: Easy | Basic Math | ||
9 | Addition Under Modulo | Theory | :green_square: Easy | Modulo | ||
10 | Multiplication Under Modulo | Theory | :green_square: Easy | Modulo | ||
11 | Modular Multiplicative Inverse | :green_square: Easy | Modulo | |||
12 | Trailing zeroes in factorial | :orange_square: Medium | Logic | |||
13 | Prime Factors | :orange_square: Medium | Prime |
出现频度为5:
出现频度为4:
LixiangZhao has been invited as a collaborator of this project.