Skip to content

Instantly share code, notes, and snippets.

View jmeirow's full-sized avatar

Joe Meirow jmeirow

View GitHub Profile
@jmeirow
jmeirow / Project11.cs
Last active April 13, 2016 10:16
Project 11 - Greatest Product
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Project11
{
public class Point
{
@jmeirow
jmeirow / gist:6a3be47b85a9a8bf91e1125d3605acd2
Created April 14, 2016 02:28
Improvement to Greatest Product
// original "seed" code.
public void ComputePoints()
{
for (int x = 0; x < 20; x++)
{
for (int y = 0; y < 20; y++)
{
points.Add(new Point { x = x, y = y });
}
SET NOCOUNT ON
DBCC UPDATEUSAGE(0)
-- DB size.
EXEC sp_spaceused
-- Table row counts and sizes.
CREATE TABLE #t
(