public string PartA() { List <int> elements = Enumerable.Range(0, 256).ToList(); KnotHashState previousState = new KnotHashState(elements, 0, 0); KnotHash knotHash = new KnotHash(); KnotHashState newState = knotHash.CalculateKnotHash(previousState, Input); int mult = newState.Elements[0] * newState.Elements[1]; return(mult.ToString()); }
public string PartB() { KnotHash knotHash = new KnotHash(Input); return(knotHash.HexOutput); }