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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.