Skip to content

Navigation Menu

Sign in
Sign up

Latest commit

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Project Documentation

This project serves as a learning exercise to explore data structures and algorithms in Python and C languages, using problems from HackerRank and LeetCode.

Overview

The project is divided into two main parts: Python and C. Each part focuses on implementing solutions to various algorithmic challenges.

Python Programming Language

Setup

  1. Create a Virtual Environment:

    First, initialize the virtual environment:

    python -m venv .venv
  2. Activate the Virtual Environment:

    Activate the virtual environment:

    .venv\Scripts\activate
  3. Install Dependencies:

    Install required dependencies using pip:

    py -m pip install -r requirements.txt

Running Tests with Pytest

To run the test cases for the Python part, use the following command at the root directory:

pytest -v -s tests_hr

This command executes pytest with verbose output (-v) and shows stdout output (-s).

C Programming Language

Setup and Compilation

  1. Install Makefile on Windows: First install the Makefile for Windows from the following link: Makefile for Windows and add the bin directory to the system path.

    Later on you can check the version of MingW installed by running the following command:

    mingw-get --version

    Now we can proceed with the installation of the make utility:

    mingw-get install make

    Then, in the bin directory we rename the make executable with make.exe. Finally you can check the version of make installed by running the following command:

    make --version
  2. Install GCC Compiler:

    Ensure that you have the GCC compiler installed on your system.

  3. Compile C Programs:

    Compile your C code (replace main.c with your actual C source file if different):

    gcc main.c -o main
    main

    This command compiles the C source file main.c and creates an executable named main. The second command runs the compiled program.

About

HackerRank problem solving using the C programming language.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /