Rob's Blog
Stuff. You know. Just stuff.

Archive for September 2012

Sea bass and tomato fusilli

September 26, 2012

Just made this tonight and it was very good. Yield: 2 servings Ingredients 1 clove garlic, 1 tbsp olive oil, 1 pinch dried chili, 5 ripe tomatoes, 1 fillet sea bass, 1 handful parsley. Preparation Remove the skin from the tomatoes: score a cross in the base of each tomato, placing in boiling water for 30 […]

Power Sets in C#

September 11, 2012

Power Sets in C# These are my implementations. 1. Using binary arithmatic. using System.Collections.Generic; namespace PowerSets {   class Solution1   {     public static IList<IList<T>> PowerSet<T>(IList<T> list)     {       int n = 1 << list.Count; IList<IList<T>> powerset = new List<IList<T>>(); for (int i = 0; i < n; ++i) […]

Design a site like this with WordPress.com
Get started