saurabh47 / Data-structures-and-algorithms

Popular coding questions solution for interview preparation
MIT License
13 stars 8 forks source link
algorithms-and-data-structures competitive-programming hacktoberfest interview-preparation leetcode

This repository is a collection of popular coding questions and their solutions. You can use this repository to refer to solutions for coding questions. If you have a better solution to an existing question or have a solution to a new question, feel free to contribute.

Table of Contents

Running a Python program

Download Python

Run the program

python3 <filename>.py

Running a cpp program

compilation

Mac/Linux

g++ file.cpp -o file.out

Windows

g++ file.cpp -o file.exe

Running

Mac/Linux

./file.out

Windows

file

Passing command line arguments

./file.out arg1 arg2

Running a c program

compilation

gcc file.c -o file.out

running

./file.out

passing command line arguments

./file.out arg1 arg2

Contributing Policy

By Sharing a code to this repository you agree to the following: