In this task, the job is to delete a file called "input.txt" and delete a directory called "docs". This should be done twice: once "here", i.e. in the
Continue ReadingC++: Dragon Curve
Create and display a dragon curve fractal. (You may either display the curve directly or write it to an image file.) This program will generate
Continue ReadingC++: Fork
In this task, the goal is to spawn a new process which can run simultaneously with, and independently of, the original parent process. #include<
Continue ReadingC++: MD5
Encode a string using an MD5 algorithm. The algorithm can be found on wikipedia. Optionally, validate your implementation by running all of the tes
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 ReadingAvoiding “!= Null” Statements in Java?
I work with Java all day long. The most used idiom (code snippet) I’m programming in Java, is to test if an object != null before I use it. This is
Continue ReadingCreating a Memory Leak With Java
I just had an interview, and I was asked to create a memory leak with Java. Needless to say I felt pretty dumb having no clue on how to even start cre
Continue ReadingC++: Fibonacci Word Fractals
The Fibonacci word may be represented as a fractal as described here: For F_wordm start with F_wordCharn=1 Draw a segment forward If curren
Continue ReadingC++: I Before E Except After C
The phrase "I before E, except after C" is a widely known mnemonic which is supposed to help when spelling English words. Task Description
Continue ReadingC++: Integer Sequence
Create a program that, when run, would display all integers from 1 to ∞ (or any relevant implementation limit), in sequence (i.e. 1, 2, 3, 4, etc) i
Continue Reading




