This is a humble personal repo of practice coding exercises. It might be helpful for advanced beginners or working developers who need to brush up on the basics.
Clone this repo and run mvn test
.
Using the code:
- Pick a file to work on in the
src/main/java/io/github/twblamer/practice/exercises
directory (e.g. LinkedListExercises.java) - Pick a method to work on, comment out the line that calls the existing solution, and write your own solution.
- Run
mvn test
to check your work. (Or use the test runner in your IDE)
- Leetcode solutions (@cheonhyangzhang)
- NeetCode.io
- Baeldung CS Tutorials (baeldung.com)
- Coding Interview University (@jwasham) - Extremely thorough and opinionated guide, better suited for absolute beginners
- Complete Roadmap To Learn DSA From Scratch (geeksforgeeks.org)
- Computer Science Roadmap (roadmap.sh) ⭐
- Teach Yourself Computer Science (teachyourselfcs.com)
- Good for binge watching
- Full course lectures
- Arrays
- Binary Tree
- [NeetCode] Binary Search Tree Iterator - Leetcode 173
- [NeetCode] Binary Tree Level Order Traversal - Leetcode 102
- [NeetCode] Binary Tree Postorder Traversal (Iterative) - Leetcode 145
- [NeetCode] Binary Tree Preorder Traversal (Iterative) - Leetcode 144
- [NeetCode] Convert Sorted Array to Binary Search Tree - Leetcode 108
- [NeetCode] Invert Binary Tree - Leetcode 226
- [NeetCode] Iterative & Recursive - Binary Tree Inorder Traversal - Leetcode 94
- [Sedgewick/Wayne] Binary Search Trees
- Bit Manipulation
- Graph
- Directed Graph
- Graph Traversal
- Topological Sort
- [Algorithms with Attitude] Introduction to Topological Sorting in Directed Acyclic Graphs
- [Algorithms with Attitude] Kahn's Algorithm for Topological Sorting
- [Algorithms with Attitude] Depth First Search Based Topological Sort
- [Baeldung] Topological Sort of Directed Acyclic Graph
- [NeetCode] Alien Dictionary - Topological Sort - Leetcode 269
- [Wikipedia] Topological sorting
- Undirected Graph
- Hash Table
- Heap
- Linked List
- Sorting Algorithms
- Insertion Sort
- Mergesort
- Quicksort
- [Algorithms with Attitude] Quick Sort and Quick Select
- [Curious Walk] Quick Sort | Manim Animation
- [GeeksforGeeks] Hoare’s vs Lomuto partition scheme in QuickSort
- [HackerRank] Algorithms: Quicksort
- [NeetCode] Sort Colors - Quicksort Partition - Leetcode 75
- [Sedgewick/Wayne] Quicksort
- [Techie Delight] Quicksort Algorithm
- [Wikipedia] Median of medians
- [Wikipedia] Quickselect
- Trie