A collection of small code challenges I've completed to practice and improve on my programming skills.
Challenge | Description |
---|---|
Adding Calculator | A calculator capable of addition, subtraction, multiplication, division, and exponentiation written using only the addition operator. |
Alphabet Cipher | A simple cipher using a secret word to shift characters in a message. |
Anagram Detector | Compares two strings to determine if they are anagrams of each other. |
Check Writer | Converts any given dollar amount into its long written form (i.e. as it would be written on a check). |
Condensing Sentences | Finds and condenses letters shared by consecutive words in a sentence. |
Everest Training | Finds the largest number of increasing peaks in a single direction. To help you train for Mt. Everest of course. |
First Reoccurring Letter | Finds and prints the first character to occur twice within a string. |
Hex Colors | Converts RGB values into hexadecimal color strings and blends hexidecimal color strings together. |
intHarmony.com | Analyzes matches between integers on 32 levels of compatibility. Includes an extra code-golf'd solution. |
Latin Squares | Determines if a given grid is a latin square. Similar to a limited version of a Sudoku solution checker. |
Nearest Prime Number | Finds the nearest prime numbers above and below a given number. |
Packet Assembler | Reads out-of-order lines in and reassemble them into proper order. |
Perfectly Balanced | Determines whether a string contains an equal number of characters. |
Talking Clock | Converts a numeric, 24-hr time into a spoken 12-hr time. |
Tally | Tallies up scores from a written format and lists players in order by score. |
UPC Check Digits | Given the first 11 digits of a UPC code, this will determine the 12th digit. |
Water Bucket Riddle | Solution to the 3-liter, 5-liter bucket problem where you need 4-liters but can't measure. Implemented to solve given two buckets of any size and any target amount. |
Word Funnel | Determines if a word can be made by dropping a letter from another word. Also lists all possible words created in this manner based on enable1.txt . |