/dsa

Primary LanguageC

DSA (Data Structures and Algorithms)

This repository is a collection of algorithms grouped by data structure. Following the Geeks for Geeks course, some LeetCode exercises and the Introduction to Algorithms, Fourth Edition book.

The implementations are in Golang and C (extra challenge)

Math

  • Count digits
  • Factorial
  • Greatest Common Divisor & Least Common Multiple
  • Palindrome number
  • Sum of naturals
  • Trailling zeros in factorial
  • Check for prime
  • Prime factor
  • All divisors of a number
  • Sieve of Eratosthenes
  • Computing power
  • Iterative power
  • Reduce to zero