Finance is drowning in a deluge of data. Humans are not very good at comprehending large amounts of data. One way out may be visualization. Traditi
Continue ReadingC++: 99 Bottles of Beer
The beersong In this puzzle, write code to print out the entire "99 bottles of beer on the wall" song. For those who do not know the song, the l
Continue ReadingC++: Count Occurrences of a Substring
The task is to either create a function, or show a built-in function, to count the number of non-overlapping occurrences of a substring inside a strin
Continue ReadingC++: Copy a Range of Elements
On line 7, we create a std::vector<int> called source containing a sequence of values that we wish to copy. On line 9, we have another std::v
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++: Find the Last Sunday of Each Month
Write a program or a script that returns the last Sundays of each month of a given year. The year may be given through any simple input method in your
Continue ReadingC++: Compare a List of Strings
Given a list of arbitrarily many strings, show how to: test if they are all lexically equal test if every string is lexically less than the on
Continue ReadingC++: What is The Rule of Three?
What does copying an object mean? What are the copy constructor and the copy assignment operator? When do I need to declare them myself? How can I
Continue ReadingC++: Main Step of GOST 28147-89
GOST 28147-89 is a standard symmetric encryption based on a Feistel network. Structure of the algorithm consists of three levels: encryption mode
Continue ReadingC++: Conway’s Game of Life
The Game of Life is a cellular automaton devised by the British mathematician John Horton Conway in 1970. It is the best-known example of a cellular a
Continue Reading