Skip to content

wangpiju/java-algorithms-datastructures-designpatterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

69 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Java Data Structures and Algorithms

A comprehensive Java project featuring classic data structures, algorithms, coding challenges, and practical interview patterns. This repository is designed for learning, practicing, and mastering core computer science concepts in Java.


πŸ“‚ Project Structure

src/main/java/
β”œβ”€β”€ algorithms/      # Classic sorting and algorithm implementations
β”œβ”€β”€ datastructures/  # Core data structure implementations
β”œβ”€β”€ challenges/      # Coding challenge solutions and interview problems
β”œβ”€β”€ pratical_ds/     # Practical data structure usage examples
β”œβ”€β”€ basic_tools/     # Utility classes and array tools

✨ Features

  • Algorithms:
    • QuickSort, InsertionSort, BubbleSort, CaesarCipher, and more.
  • Data Structures:
    • ArrayList, ArrayQueue, SinglyLinkedList, and practical scoreboard examples.
  • Coding Challenges:
    • Solutions for problems like Combination Sum, Find Peak Element, String to Integer, Merge Two Sorted Lists, Reverse Vowels, and more.
  • Utilities:
    • Array tools for common operations and demonstrations.

πŸš€ Getting Started

No extra setup required!
Just clone the repository and open it in your favorite Java IDE (e.g., IntelliJ IDEA, Eclipse, VS Code).

To run a specific example:

  1. Navigate to the desired class with a main method (e.g., algorithms/InsertionSort.java).
  2. Run the file directly.

🧩 Example Usage

// Example: Running InsertionSort
public static void main(String[] args) {
    char[] data = {'B', 'C', 'D', 'A', 'E'};
    InsertionSort.insertionSort(data);
    System.out.println(Arrays.toString(data)); // Output: [A, B, C, D, E]
}

πŸ“ Contributing

Contributions are welcome!
Feel free to open issues or submit pull requests for new algorithms, data structures, or improvements.


πŸ“š License

This project is open source and available under the MIT License.


πŸ™‹β€β™‚οΈ Author

Maintained by Jess Wang and contributors.


Let me know if you want to include more details, such as build instructions, test instructions, or a more detailed list of algorithms and data structures!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages