For a maze generated by this task, write a function that finds (and displays) the shortest path between two cells. Note that because these mazes are g
Continue ReadingC++: Minesweeper Game
There is an n by m grid that has a random number (between 10% to 20% of the total number of tiles, though older implementations may use 20%..60% inste
Continue ReadingC++: Greatest Element of a List
Create a function that returns the maximum value in a provided set of values, where the number of values may not be known until runtime. This will
Continue ReadingC++: Dot Product
Create a function/use an in-built function, to compute the dot product, also known as the scalar product of two vectors. If possible, make the vectors
Continue ReadingC++: Combinations
Given non-negative integers m and n, generate all size m combinations of the integers from 0 to n-1 in sorted order (each combination is sorted and th
Continue ReadingC++: Infinite Loops
Specifically print out "SPAM" followed by a newline in an infinite loop. while (true) std::cout << "SPAM" << std::endl; or
Continue ReadingC++: Exponentiation Operator
Most all programming languages have a built-in implementation of exponentiation. Re-implement integer exponentiation for both intint and floatint as b
Continue ReadingC++: Ethiopian Multiplication
A method of multiplying integers using only addition, doubling, and halving. Method: Take two numbers to be multiplied and write them down at
Continue ReadingC++: Discordian Date
Convert a given date from the Gregorian calendar to the Discordian calendar. #include <iostream> #include <algorithm> #include <
Continue ReadingC++: Accumulator Factory
A problem posed by Paul Graham is that of creating a function that takes a single (numeric) argument and which returns another function that is an acc
Continue Reading




