Tag archives for c#
Presidents and Terms – A Monte Carlo exercise using c# , .net
Consider the 24 presidents (and their corresponding 24 terms in office) in the 19th century. A student was asked to match the president to his term. Not knowing the answers,…
LINQ versus looping–Performance
Looping and Iterating is bad for performance right? So – a loop like the one below should be bad. for (int i = 0; i <= iterations; i++) { foreach…