Skip to content

Yash-Lade/Array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Array Problems in C++

This repository contains a collection of C++ programs focused on array-based problems, suitable for beginners and intermediate learners looking to practice data structures and algorithms.

🧠 What You'll Find Here

  • C++ solutions to common array-related problems
  • Code for 1D and 2D arrays
  • Classic interview questions like:
    • Reverse an array
    • Find max/min element
    • Linear search
    • Binary search
    • Matrix traversal
    • Sorting techniques
  • Well-commented code for better understanding

📁 Folder Structure

Array/
├── 1D/
│   ├── reverse_array.cpp
│   ├── linear_search.cpp
│   ├── binary_search.cpp
│   └── ...
├── 2D/
│   ├── matrix_input_output.cpp
│   ├── transpose_matrix.cpp
│   └── ...
└── README.md

🛠️ Technologies Used

  • Language: C++
  • IDE: Any C++ compatible IDE (e.g., CodeBlocks, Visual Studio, or VS Code)
  • Compiler: g++ or any C++17+ compliant compiler

🚀 Getting Started

To run any program:

  1. Clone this repository:

    git clone https://github.com/Yash-Lade/Array.git
  2. Navigate to the project directory:

    cd Array
  3. Compile and run the desired .cpp file using g++:

    g++ 1D/reverse_array.cpp -o reverse
    ./reverse

🤝 Contributing

Contributions are welcome! If you have a new array problem or an optimized solution, feel free to create a pull request.

  1. Fork the repository
  2. Create a new branch (git checkout -b feature-name)
  3. Commit your changes (git commit -m "Add your message")
  4. Push to the branch (git push origin feature-name)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License.


Author: Yash Lade

About

A repo with all kinds of array problems <easy, medium, hard>

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages