2024年03月的文章 第2页
【人工智能】仁爱人工智能路线
一、学习C++(大一 10月-1月) 大一进社团验收完C语言后开始学习C++,学到泛型即可(便于理解为什么python中不需要定义数据的类型)。 二、python基础和Anaconda的安装(大一1月-2月) 取消数据...
【递归】快速幂
class Solution: def myPow(self, x: float, n: int) -> float: if n==0: return 1 if n==1: return x if n==-1: ...
【递归】2的幂
递归法: class Solution: def isPowerOfTwo(self, n: int) -> bool: if n==1: return True if n<=0 or n%2!=0: return Fals...