Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/harsharchives/hackerrank-cpp-problems

This repository contains a collection of solved programming problems from Hackerrank, implemented in the C++ programming language.
https://github.com/harsharchives/hackerrank-cpp-problems

cpp hackerrank-cpp hackerrank-solutions

Last synced: 22 days ago
JSON representation

This repository contains a collection of solved programming problems from Hackerrank, implemented in the C++ programming language.

Awesome Lists containing this project

README

        

# :computer: Hackerrank-CPP-Problems

[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) ![C++](https://img.shields.io/badge/Language-C%2B%2B-blue.svg)

This repository contains a collection of solved programming problems from Hackerrank, implemented in the C++ programming language. Each problem is solved with the goal of providing concise and efficient solutions.

## 💡 Table of Contents

- [Installation](#installation)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)

## :rocket: Getting Started

To use the code in this repository, follow the steps below:

1. Clone the repository to your local machine using the following command:

```bash
git clone [email protected]:geekyharsh05/Hackerrank-CPP-Problems.git
```

2. Ensure that you have a C++ compiler installed on your machine.

3. Navigate to the cloned repository directory:

```bash
cd Hackerrank-CPP-Problems
```

## 📌 Usage

Each problem is organized into a separate directory and contains the problem statement, the C++ source code solution, and a sample input/output file.

To run a specific problem, navigate to its directory and compile the C++ source code using your preferred C++ compiler. For example, to compile `problem.cpp`, use the following command:

```bash
g++ problem.cpp -o problem
```

After successful compilation, you can run the executable file (e.g., `problem.exe` on Windows or `./problem` on Linux/Mac) to execute the code and see the output.

```bash
./problem
```

## :handshake: Contributing

Contributions to this repository are welcome! If you want to add solutions for new Hackerrank problems or improve existing ones, please follow these guidelines:

- Fork the repository.
- Create a new branch for your feature or bug fix.

- Implement your changes and ensure that your code adheres to the C++ coding style.

- Add new problem solutions in their respective directories, following the existing structure.

- Test your code thoroughly to ensure it works correctly.

- Commit your changes and push your branch to your forked repository.

- Submit a pull request to the main repository, providing a clear description of your changes.

## :memo: License

The code in this repository is licensed under the [MIT License](LICENSE). Feel free to use, modify, and distribute the code for personal and commercial purposes.