The Dutch national flag is composed of three coloured bands in the order red then white and lastly blue. The problem posed by Edsger Dijkstra is:
Continue ReadingC++: Dijkstra’s Algorithm
Dijkstra's algorithm, conceived by Dutch computer scientist Edsger Dijkstra in 1956 and published in 1959, is a graph search algorithm that solves the
Continue ReadingC++: Comma Quibbling
Comma quibbling is a task originally set by Eric Lippert in his blog. The task is to write a function to generate a string output which is the conc
Continue ReadingC++: Catamorphism
Reduce is a function or method that is used to take the values in an array or a list and apply a function to successive members of the list to produce
Continue ReadingC++: Call a Foreign-Language Function
Show how a foreign language function can be called from the language. As an example, consider calling functions defined in the C language. Create a
Continue ReadingC++: Longest Common Subsequence
#include <algorithm> #include <string> #include <vector> #include <stdio.h> #include <string.h> // See http
Continue ReadingC++: Copy and Swap
The copy-and-swap idiom identifies that we can implement a classes copy/move assignment operators in terms of its copy/move constructor and achieve st
Continue ReadingC++ Full Course Lesson 8: If Statement
https://www.youtube.com/watch?v=yEY8xlnarNo&index=8&list=PLAE85DE8440AA6B83
Continue ReadingC++: While Loops
Start an integer value at 1024. Loop while it is greater than 0. Print the value (with a newline) and divide it by two each time through the loop.
Continue ReadingC++: Guess the Number With Feedback
The task is to write a game that follows the following rules: The computer will choose a number between given set limits and asks the player for
Continue Reading




