message: added code to digits in factorial
diff: @@ -12,6 +12,17 @@ class Solution
  public:
  int digitsInFactorial(int N)
  {
  + if(N<0)
  + return 0;
  +
  + if(N<=1)
  + return 1;
  +
  + double digits = 0;
  + for(int i=2;i<=N;i++)
  + digits+= log10(i);
  +
  + return floor(digits)+1;
  // code here
  }
  };
  