public static void FirstStarExample() { const string input = "flqrgnkx"; var lit = HashGrid.CountLit(input); Assert.Equal(8108, lit); }
public static void SecondStarExample() { const string input = "flqrgnkx"; var groups = HashGrid.ContinousRegions(input); Assert.Equal(1242, groups); }
public override string SecondStar() { var result = HashGrid.ContinousRegions(input); return(result.ToString()); }
public override string FirstStar() { var result = HashGrid.CountLit(input); return(result.ToString()); }