예제 #1
0
        static void Main(string[] args)
        {
            string       input        = File.ReadAllText("../../../input.txt");
            SuitMaterial suitMaterial = new SuitMaterial();

            Console.WriteLine($"Part 1 - Total overlapping area: {suitMaterial.GetOverLappingAreaFromClaims(input)}");

            Console.WriteLine($"Part 2 - Claim ID with no overlap: {suitMaterial.GetClaimThatHasNoOverlap(input)}");
        }
예제 #2
0
        public void ReturnOnlyClaimWithNoOverlap(string claims, int claimId)
        {
            int result = _suitMaterial.GetClaimThatHasNoOverlap(claims);

            Assert.AreEqual(claimId, result);
        }