public void BinominalCoefficient_Of4Over2_Returns6() { // Arrange var n = 4; var k = 2; var expectedResult = 6; // Act var result = FactorialHelper.BinominalCoefficient(n, k); // Assert result.Should().Be(expectedResult); }
public long ComputeSolution() { return((long)FactorialHelper.BinominalCoefficient(TOTAL_NUMBER_OF_STEPS, TOTAL_NUMBER_OF_STEPS_DOWNWARDS)); }