예제 #1
0
        public static void FirstStarExample() {
            const string input = "flqrgnkx";

            var lit = HashGrid.CountLit(input);

            Assert.Equal(8108, lit);
        }
예제 #2
0
        public static void SecondStarExample() {
            const string input = "flqrgnkx";

            var groups = HashGrid.ContinousRegions(input);

            Assert.Equal(1242, groups);
        }
예제 #3
0
        public override string SecondStar()
        {
            var result = HashGrid.ContinousRegions(input);

            return(result.ToString());
        }
예제 #4
0
        public override string FirstStar()
        {
            var result = HashGrid.CountLit(input);

            return(result.ToString());
        }