Skip to content
RockingAayushPublic

About

This is me documenting my DSA journey .

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

My DSA

This repository is dedicated to documenting my Data Structures and Algorithms (DSA) journey using C++. It includes various DSA algorithms, practices, and implementations as I learn and progress in the field of DSA.

Key Features and Highlights

  • Detailed documentation of DSA concepts and algorithms
  • Implementation of DSA algorithms in C++
  • Extensive practice exercises for honing DSA skills

Installation

  1. Clone the repository:
    git clone https://github.com/your-username/My-DSA.git
  2. Compile the C++ files using a C++ compiler:
    g++ filename.cpp -o output

Usage Examples

  1. Example of a simple C++ program:
    #include <iostream>
    
    int main() {
        std::cout << "Hello, DSA!" << std::endl;
        return 0;
    }
  2. Example of a binary search algorithm implementation:
    // Binary Search Algorithm
    int binarySearch(int arr[], int left, int right, int target) {
        while (left <= right) {
            int mid = left + (right - left) / 2;
            if (arr[mid] == target) {
                return mid;
            }
            if (arr[mid] < target) {
                left = mid + 1;
            } else {
                right = mid - 1;
            }
        }
        return -1;
    }

Dependencies

No external dependencies required.

About

This is me documenting my DSA journey .

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Contributors

Languages