Load a JSON string into a data structure. Also create a new data structure and serialize it into JSON. Use objects and arrays (as appropriate for y
Continue ReadingIs Java “Pass-by-Reference” or “Pass-by-Value”?
I always thought Java was pass-by-reference; however I’ve seen a couple of blog posts (for example, this blog) that claim it’s not. I don’t thin
Continue ReadingWhy Is Subtracting These Two Times (In 1927) Giving a Strange Result?
If I run the following program, which parses two date strings referencing times one second apart and compares them: public static void main(String[]
Continue ReadingC++: Black Scholes Put Option Theta
// Calculate the Black Scholes European put option Theta double BS_Put_Option_Theta(double S, double K, double r, double v, double T) // Parame
Continue ReadingC++: Sample Covariance
double sample_covariance(double A[], double B[], int length) // Function calculates the sample covariance the array A and array B, whose lengths
Continue ReadingC++: Calculate Geometric Mean
void Geometric_Mean_Array(double & mean_normal, const double * a, const int n) //Function that calculates the geometric mean (geometric avera
Continue ReadingC++ Full Course Lesson 3: More on Printing Text
https://www.youtube.com/watch?v=sPv0HQ8xOaU&list=PLAE85DE8440AA6B83&index=3
Continue ReadingScott Meyers – the Evolving Search for Effective C++ – Keynote @ Meeting C++ 2014
https://www.youtube.com/watch?v=smqT9Io_bKo
Continue ReadingC++: Create a File
In this task, the job is to create a new empty file called "output.txt" of size 0 bytes and an empty directory called "docs". This should be done twic
Continue ReadingC++: Largest Int from Concatenated Ints
Given a set of positive integers, the task is to write a function to order the integers in such a way that the concatenation of the numbers forms the
Continue Reading




