Programming Puzzles





/ 1 min read

Unix cat program - Programming Puzzles

One of the most common standard tasks is to implement a "cat program": read all of STDIN and print it to STDOUT. While this is named after the Unix shell utility cat. Task You should write a full program which reads the contents





/ 1 min read

Find Anagram String - Programming Puzzles

Given two strings, work out if they both have exactly the same characters in them. Example Input word, wrdo This returns true because they are the same but just scrambled. Input word, wwro This returns false. Rules Here are the rules! Assume input will be



/ 1 min read

Build a Rocket - Programming Puzzles

This isn't rocket science. LoL Write a program or function that takes in a single-line string. You can assume it only contains printable ASCII. Print or return a string of an ASCII art rocket such as | /_\ |I| |N| |D| |I| |A| |_| /___\ VvV with the input

Load More