Giter VIP home page Giter VIP logo

datastructuresandalgorithms_c-_js_python's Introduction

# DS & Algo - JS, Python & C#
Here I am listing a set of popular DS & Algo problem and cource code is provided in multiple languages under respective folders.


## TOOLS:
- You can use online IDEs like repl.it OR ideone.com, but there you lack Intellisense & IDE debugging capability
- I am using VS Code for coding in all these languages
    - JS
        - install node & npm
        - Open a new termianl that contains the js file and run the module
        - Run : >node fizzBuzz.js
    - Python
        - install python3
        - Open a new termianl that contains the js file and run the module
        - Run : >python fizzBuzz.py
    - For C#, you need to install .net core SDK ( I use 3.1)
    - Create Project : Open the terminal on the new folder and:
        - >dontnet new console
        - >dotnet restore
        - >dontnet run, after finishing code
        - TO debug, click F5 and VVCode will create the required consigurations to debug a .netCore project in : launch.jsom


Check NOTES at eht top of each file for unique insights related to that language.

## 0. CommonTasks
    - Read/write from file
    - Many times, these logic are par of the algo code
    - Read from file - input.txt and write to file: output.txt
    - input.txt has one int per line
    - Write number to outfile, if the input line is a valid number

### 1. FizzBuzz<br/>
NOTES:<br/>
    - Task : Print number from 1 to n
        - If divisible by 3: print Fizz, if by 5 : Buzz, by both : FizzBuzz
    - Clarifications - 
    - Design - Use a loop and modulus operator
    - Coding-
    - Testing- 
    - Analysis:
        - RunTime Complexity : How does the program run time change as the inout changes - O(n) since we have to loop through each iteam and operate on it.

### 2. Ransom Note<br/>
NOTES:<br/>
    - Clarifications - 
    - Design - Use a loop and modulus operator
    - Coding-
    - Testing- 
    - Analysis:
        - RunTime Complexity :

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.