Skip to content

This repository has the solutions to the 30 days of code by Hacker Rank challenges.

Notifications You must be signed in to change notification settings

alessandrror/30-days-of-code

Repository files navigation

Introduction

The 30 days of code is a popular trending in the programming and development world. The main idea is simple: code for 30 days.

In this case, I will use the challenges provided by Hacker Rank and try to complete each challenge in a few languages ​​that I want to practice.

I'll push a solution for a challenge in one programming language every day... or so I hope!

Languages

I chose the languages ​​according to my preferences, so the order to follow the path is:

And yes, it depends on my time and if I don't die on the way to achieving it, I will consider adding other languages ​​to practice and understand the syntax.

Installation

If you don't have Git, you'll need to install it and then just copy the next command on your terminal/console:

git clone [email protected]:Alessandrror/30-days-of-code.git

After this you'll see a folder in your directory with the name of the project.

Run

Important To run a program you must have the environments, interpreters, compilers or other tools required for each language.

The prefixes you use to run the files for each language are:

JavaScript

node ./source-path

TypeScript

npx ts-node ./source-path

Python

python3 ./source-path

PHP

php ./source-path

C#

Create:

dotnet new console -o ./source-path

Run:

dotnet run --project ./source-path

Rust

Compile:

rustc ./source-path

Run:

./source-path

Ruby

ruby ./source-path

Bash

sh ./source-path

C++

g++ -o ./new-file-name ./source-path