public string SolveSecondStar(StreamReader reader) { treeMap = StreamParsers.GetStreamAs2DIntArray(reader); var treeProduct = CountTrees(1, 1) * CountTrees(3, 1) * CountTrees(5, 1) * CountTrees(7, 1) * CountTrees(1, 2); return(treeProduct.ToString()); }
public string SolveFirstStar(StreamReader reader) { treeMap = StreamParsers.GetStreamAs2DIntArray(reader); return(CountTrees(3, 1).ToString()); }