[实用向] 算法笔试题中常用记录
1、pow 幂运算(math.h)
pow(2,n);//2^n
2、sqrt 开方运算 (math.h)
sqrt(n) //开方 x*x = n,返回x
3、奇数偶数相关函数取名
奇数:odd;
偶数:even;
-----------------------------随时更新--------------------------------
1、pow 幂运算(math.h)
pow(2,n);//2^n
2、sqrt 开方运算 (math.h)
sqrt(n) //开方 x*x = n,返回x
3、奇数偶数相关函数取名
奇数:odd;
偶数:even;
-----------------------------随时更新--------------------------------