Given the date string "March 7 2009 7:30pm EST", output the time 12 hours later in any human-readable format. #include <string> #include &
Continue ReadingC++: CSV to HTML Translation
Consider a simplified CSV format where all rows are separated by a newline and all columns are separated by commas. No commas are allowed as field dat
Continue ReadingC++: Casting Out Nines
A task in three parts: Part 1 Write a procedure (say co9(x)) which implements Casting Out Nines as described by returning the checksum for x.
Continue ReadingC++ Puzzles/Games
[pt_view id="fa2c5f1466"]
Continue ReadingC++: Multisplit
It is often necessary to split a string into pieces based on several different (potentially multi-character) separator strings, while still retaining
Continue ReadingC++: FizzBuzz
Write a program that prints the integers from 1 to 100. But for multiples of three print "Fizz" instead of the number, and for the multiples of fiv
Continue ReadingC++: Euler Method
Euler's method numerically approximates solutions of first-order ordinary differential equations (ODEs) with a given initial value. It is an explicit
Continue ReadingC++: Catalan Numbers
Catalan numbers are a sequence of numbers which can be defined directly: Or recursively: Or alternatively (also recursive):
Continue ReadingC++: Binary Search Tree Verification
struct TreeNode { int data; TreeNode *left; TreeNode *right; }; bool isBST(TreeNode *node, int minData, int maxData) { if(node == NULL
Continue ReadingC++ Full Course Lesson 10: Creating Functions That Use Parameters
https://www.youtube.com/watch?v=-87KQS-rZCA&index=10&list=PLAE85DE8440AA6B83
Continue Reading




