Code Monkey home page Code Monkey logo

basic-programs's Introduction

basic-programs

This repo contains a few basic programs in languages such as Java, Python, C# etc.

Structure

basic-programs/
├──<Language Name>/
│  ├──<Descriptive name>.example

If there is no folder for the language in the repository, you are more than welcome to add another.

If you are adding a program that utilises a specific concept and/or theory, please add it to its own sub-folder.

Please ensure that the code in the PR is formatted properly. You can use online tools for formatting like:

Also ensure that the filename is either snake_case or PascalCase.

example:

For a concept:

basic-programs/
├──javascript/
│  ├──recursion/
|  |  ├──factorial.js

For a simple program:

basic-programs/
├──ruby/
│  ├──reading_input.rb

Important!

When making a change, please check open Pull Requests to make sure that what you're working on is not already done.

basic-programs's People

Contributors

aljohn-ma avatar antempus avatar asdfmaciej avatar db001 avatar f4ww4z avatar hypersoniq avatar iammukultaneja avatar luiscarlossf avatar maddaladivya avatar mamorales10 avatar maria-mata avatar mathewmorales avatar mohammadasad9450 avatar pratyushraj2121 avatar rajatg64 avatar rakshaa2000 avatar riyapannu7 avatar scarlet-coder avatar shubhamnarkhede avatar shuvikash avatar singloon avatar skm26 avatar starvader avatar suvojit-0x55aa avatar techpavan avatar uthpalapitawela avatar utkarsh-shekhar avatar utkarshdroid avatar vercryger avatar yuyi-hao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

basic-programs's Issues

Counting sort

Counting sort: https://en.wikipedia.org/wiki/Counting_sort

Given an array of N numbers where each number falls in the range [1-100,000], return the sorted array. Time complexity should be O(n).

Example:

vector<int> sort(vector<int> numbers) {
  // should return sorted array.
}

You can use any language you are comfortable with.

Fizz Buzz test

This is for git beginners.

Please add a program for the fizz buzz test in the language of your choice. Please name the file fizz-buzz.

Print numbers from 1-100.
For multiples of 3, print "Fizz" instead of the number
For multiples of 5, print "Buzz" instead of the number
For multiples of 3 and 5, print "FizzBuzz" instead of the number

See readme for the structure.

Do let me know if anything is not clear.

Add a program using multi threading

This is for git beginners.

Please add a program using multi threading in the language of your choice. Make sure you add it under "multi threading" folder for the language of your choice. Create that folder if it does not exist.
See readme for the structure.

Do let me know if anything is not clear.

Add a program using recursion

This is for git beginners.

Please add a program using recursion in the language of your choice. Make sure you add it under "recursion" folder for the language of your choice. Create that folder if it does not exist.
You can add any program which uses recursion!
See readme for the structure.

Do let me know if anything is not clear.

Add a basic factorial program

This is for git beginners.

Please add a basic factorial program in the language of your choice. Make sure you handle negative cases by either raising an exception or by printing a relevant message. See readme for the structure.

Do let me know if anything is not clear.

Add a program which uses method overloading

This is for git beginners.

Please add a program using method overloading in the language of your choice. Please name the file method-overloading.
See readme for the structure.

Do let me know if anything is not clear.

Add a program demonstrating callbacks in JS

This is for git beginners.

Please add a program demonstrating demonstrating callbacks in Javascript. See readme for the structure and naming your file.

Do let me know if anything is not clear.

Heapsort

A program in java to implement heapsort. Please assign this to me

Difference between == and === in JS

This is for git beginners.

Please add a program demonstrating difference between == and === in Javascript. See readme for the structure and naming your file.

Do let me know if anything is not clear.

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.