mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-04-05 11:40:46 +08:00
Merge branch 'document/others' into document/temp
* document/others: fix happy number code and documetnation added see also reference to fibonacci
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
* found if we have already found n/2th or (n+1)/2th fibonacci It is a property
|
||||
* of fibonacci similar to matrix exponentiation.
|
||||
*
|
||||
* @see fibonacci_large.cpp, fibonacci.cpp
|
||||
* @see fibonacci_large.cpp, fibonacci.cpp, string_fibonacci.cpp
|
||||
*/
|
||||
|
||||
#include <cinttypes>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* A [happy number](https://en.wikipedia.org/wiki/Happy_number) is a decimal
|
||||
* number whose sum of digits is calculated until the sum is a single digit, and
|
||||
* this sum turns out to be 1.
|
||||
* @file
|
||||
* @brief A happy number is a number whose sum of digits is calculated until the
|
||||
* sum is a single digit, and this sum turns out to be 1
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
|
||||
Reference in New Issue
Block a user