mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +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:
commit
8775585ad0
@ -11,7 +11,7 @@
|
|||||||
* found if we have already found n/2th or (n+1)/2th fibonacci It is a property
|
* found if we have already found n/2th or (n+1)/2th fibonacci It is a property
|
||||||
* of fibonacci similar to matrix exponentiation.
|
* of fibonacci similar to matrix exponentiation.
|
||||||
*
|
*
|
||||||
* @see fibonacci_large.cpp, fibonacci.cpp
|
* @see fibonacci_large.cpp, fibonacci.cpp, string_fibonacci.cpp
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <cinttypes>
|
#include <cinttypes>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* A [happy number](https://en.wikipedia.org/wiki/Happy_number) is a decimal
|
* @file
|
||||||
* number whose sum of digits is calculated until the sum is a single digit, and
|
* @brief A happy number is a number whose sum of digits is calculated until the
|
||||||
* this sum turns out to be 1.
|
* sum is a single digit, and this sum turns out to be 1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
Loading…
Reference in New Issue
Block a user