Sie sind auf Seite 1von 2

using System;

using System.Collections.Generic;

namespace Basics
{
public class Functions
{
/// <summary>
/// Reverses a string.
/// </summary>
/// <param name="value">String to reverse.</param>
/// <returns>Reversed string.</returns>
public static string ReverseString(string value)
{
// throw new NotImplementedException();

/// <summary>
/// Calculates the Nth fibonacci number.
/// </summary>
/// <param name="n">Fibonacci number to calculate.</param>
/// <returns>The nth fibonacci number.</returns>
public static int CalculateNthFibonacciNumber(int n)
{
throw new NotImplementedException();
}

/// <summary>
/// Pads a number with up to four zeroes, returning a string with a total
length of five numerical characters.
/// </summary>
/// <param name="number">Number to pad.</param>
/// <returns>Zero-padded number.</returns>
/// <remarks>Can only pad unsigned numbers up to 99999.</remarks>
public static string PadNumberWithZeroes(int number)
{
throw new NotImplementedException();
}

/// <summary>
/// Determines if a year is a leap year.
/// </summary>
/// <param name="year">Year to determine.</param>
/// <returns>True if leap year, false if not.</returns>
public static bool IsLeapYear(int year)
{
throw new NotImplementedException();
}

/// <summary>
/// Find the N:th largest number in a range of numbers.
/// </summary>
/// <param name="numbers">List of integers.</param>
/// <returns>The third largest number in list.</returns>
public static int FindNthLargestNumber(List<int> numbers, int
nthLargestNumber)
{
throw new NotImplementedException();
}

/// <summary>
/// Selects all prime numbers from an enumerable with numbers.
/// </summary>
/// <param name="numbers">Enumerable with numbers.</param>
/// <returns>An enumerable with only prime numbers.</returns>
public static IEnumerable<int> SelectPrimeNumbers(IEnumerable<int> numbers)
{
throw new NotImplementedException();
}

/// <summary>
/// Determines if the bit pattern of value the same if you reverse it.
/// </summary>
/// <param name="value">Value to inspect.</param>
/// <returns>True if the bit value is a palindrome otherwise
false.</returns>
public static bool IsPalindrome(int value)
{
throw new NotImplementedException();
}

/// <summary>
/// Counts all set bits in an int value.
/// </summary>
/// <param name="value">Integer value to count bits in.</param>
/// <returns>Number of set bits in integer value.</returns>
public static int CountSetBits(int value)
{
throw new NotImplementedException();
}
}
}

Das könnte Ihnen auch gefallen