Skip to content
  • HOME
  • main page
  • Discussion
  • History
  • View source
  • Community Portal
  • BLOGExpand
    • I/O
    • Math
    • Time
    • Sort algorithms
  • Math

    Calculate the Factorial of a Number

    Byahotnjok June 22, 2026June 22, 2026

    Calculate the Factorial of a Number — CodeCodex Math Calculate the Factorial of a Number The first recursive function most programmers ever write — and the one that quietly teaches stack limits, big-integer arithmetic, and why iteration sometimes wins. Difficulty: Beginner Languages: Python · C · Haskell Read: ~9 min In this article What a…

    Read More Calculate the Factorial of a NumberContinue

  • Math

    Calculate an Integer Square Root

    Byahotnjok June 22, 2026June 22, 2026

    Calculate an Integer Square Root — CodeCodex Math Calculate an Integer Square Root Finding ⌊√n⌋ without floating point — three approaches, from the naive crawl to the one fast enough to belong in a hot loop. Difficulty: Beginner–Intermediate Languages: C · Python · Java Read: ~9 min In this article What an integer square root…

    Read More Calculate an Integer Square RootContinue

Page navigation

Previous PagePrevious 1 2
CodeCodex Footer
CodeCodex

CodeCodex is a free, open, wiki-powered code repository covering 40+ programming languages. Find ready-to-use algorithms, snippets, and functions — written and improved by developers around the world every day.

Categories

  • Sorting Algorithms
  • Input / Output
  • Math & Algorithms
  • Time & Dates

Company

  • Home
  • Community
  • Blog

Legal

  • Privacy Policy
  • Disclaimer
© 2025 CodeCodex. All rights reserved. Free and open for everyone.
Privacy Policy Disclaimer Sorting Algorithms
  • HOME
  • main page
  • Discussion
  • History
  • View source
  • Community Portal
  • BLOG
    • I/O
    • Math
    • Time
    • Sort algorithms