Skip to content

csaye/coding-challenges

Repository files navigation

Coding Challenges

A collection of common coding challenges in C#, C++, Java, JavaScript, and Python.

Programs

BinaryDecimal: Returns the decimal representation of a given binary string.

Clamp: Returns given integer clamped to given min and max.

DecimalBinary: Returns the binary representation of a given decimal.

Factorial: Returns the factorial of a given integer.

Fibonacci: Prints the first 10 numbers of the Fibonacci sequence to the console.

FizzBuzz: Prints numbers 1 to 100 (inclusive) to the console, replacing every multiple of 3 with "Fizz", every multiple of 5 with "Buzz", and every multiple of both with "FizzBuzz".

HelloWorld: Prints "Hello World" to the console.

Postfix: Takes a postfix expression input from the console and prints the result of that expression.

Primes: Prints all prime numbers up to 100 to the console.

Quine: Prints itself (the program) to the console.

ReverseString: Takes a string input from the console and prints the reverse of that string.

Sort: Sorts given array.

Sum: Returns the sum of two integers.

WordCount: Returns the number of words in a given string.

About

A collection of common coding challenges in various languages.

Resources

Stars

Watchers

Forks