摘要:
本阶段主要针对C++==面向对象==编程技术做详细讲解,探讨C++中的核心和精髓。 1 内存分区模型 C++程序在执行时,将内存大方向划分为4个区域 代码区:存放函数体的二进制代码,由操作系统进行管理的 全局区:存放全局变量和静态变量以及常量 栈区:由编译器自动分配释放, 存放函数的参数值,局部变量 阅读全文
摘要:
说明: 最初跟鹏哥学习最大公约数的算法是辗转相除,确实印象很深刻,那种辗转赋值的思想在好多题目中都有运用,但随着进一步学习,我也参考了其他几种方便快捷的最大公约数求法,在这里做一个总结。 阅读全文
摘要:
Description Background Binary trees are a common data structure in computer science. In this problem we will look at an infinite binary tree where the 阅读全文
摘要:
Description In computer science, a binary tree is a tree data structure in which each node has at most two children. Consider an infinite full binary 阅读全文