Skip to content

Latest commit

 

History

History
12 lines (12 loc) · 496 Bytes

File metadata and controls

12 lines (12 loc) · 496 Bytes

Datastructure Problem and Solution

Section 1

  1. Fizz Buzz problem
  2. Palimdrome number
  3. Number of trailing zeros in a factorial of a number
    Solution is to find the count of 5 which are available in the factorial
    Example: !10 = 1 * 2 * 3 * 4 * 5 * 6 * 7 * 8 * 9 * 10
    which is further rewritten as !10 = 1 * 2 * 3 * 4 * 5 * 6 * 7 * 8 * 9 * 2 * 5
    Answer: Number trailing zero = 2
  4. Power(x, n)

Section 2

  1. Reverse a String