Ad
namespace Solution
{
  public class Fibonacci
  {
    public static int DoFibonacci(int n)
    {
      if ("2 1".Contains($"{n}"))
        return 1;
      return n == 0? 0 : DoFibonacci(n - 1) + DoFibonacci(n - 2);
    }
  }
}
Code
Diff
  • public class Kumite {
      public static bool IsThree(int x) =>
        $"{x}".Contains('3');
    }
    • public class Kumite {
    • public static bool IsThree(int x) =>
    • x.ToString().Contains('3');
    • $"{x}".Contains('3');
    • }