算法笔记
虚心的小胖
记录,督促,加油
展开
-
leetcode-8-String to Integer (atop)字符串转整数
Carefully consider all possible input cases.考虑程序要全面: 边界处理:溢出,最大正整数,最小负整数返回什么有非数字符号,正负号,小数点,会有指数吗?(都没有)有空格(在开头或在中间或在最后) 错误处理,鲁棒性:空指针#include #include #include using namespace std;/* 溢出要从同位数开始判原创 2016-03-04 15:02:52 · 1341 阅读 · 0 评论 -
二叉树morris遍历的算法笔记(手写)
原创 2016-02-26 00:06:45 · 374 阅读 · 0 评论