Skip to content

dipesh-gupta2/DSA_JAVA

 
 

Repository files navigation


DSA / Java Repository

This repository contains various Java programs and data structures & algorithms (DSA) practice problems. The code is organized into different categories and includes implementations of search algorithms, sorting algorithms, array manipulations, string operations, and more.

Directory Structure

  • Arrays:
    Contains programs related to array manipulation and practice.

  • LINEAR_SEARCH:
    Implementation of the linear search algorithm, which is a basic search algorithm used to find an element in an array or list.

  • SORTINGALGORITHMS:
    Contains implementations of common sorting algorithms.

    • Sorting algorithms like QuickSort, MergeSort, BubbleSort, and others are implemented for practice and learning.
  • Strings:
    Programs focusing on string manipulation, operations, and problem-solving using string data structures.

  • binarysearch:
    This folder contains programs related to binary search, a faster search algorithm for sorted arrays.

  • classcode:
    Java practice exercises and programs from classwork, covering basic to intermediate concepts in Java programming.

  • Main.java / Main.class:
    The main entry point for some Java programs. Main.java contains the code, while Main.class is the compiled bytecode of the Main.java file.

  • 2D array questions:
    Programs solving questions related to two-dimensional arrays, which are often used in matrix operations and grid-based problems.

Key Programs

  • LINEAR_SEARCH:
    Simple implementation of the linear search algorithm for searching elements in an unsorted array.

  • SORTINGALGORITHMS:
    A set of programs covering various sorting techniques. Sorting algorithms are essential for understanding time complexity and optimization in DSA.

  • Strings:
    This section contains solutions and utility programs for string manipulation and pattern matching.

  • binarysearch:
    Implementation of binary search, which is a divide-and-conquer algorithm to efficiently find an element in a sorted array.

Java Practice and Projects

  • Java Practice:
    Exercises and programs for strengthening Java programming skills, covering topics like OOP, arrays, and string handling.

  • JAVA PROJECT:
    Contains larger Java projects or assignments that were worked on during the course of Java practice.

How to Use

  1. Clone the repository:

    git clone https://github.com/dipesh-gupta2/DSA_JAVA.git
  2. Navigate to the respective folder (for example, to the SORTINGALGORITHMS folder):

    cd SORTINGALGORITHMS
  3. Compile and run the Java program:

    javac Main.java
    java Main

Contributions

Feel free to fork this repository, make improvements, and submit pull requests. Contributions are welcome!

License

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

MIT License

Copyright (c) 2023 DIPESH GUPTA

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%