
c++
廿年一梦
人笨还需多努力
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
leetcode--Roman to Integer
leetcode C++原创 2015-08-27 18:33:42 · 450 阅读 · 0 评论 -
leetcode--Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.class Solution {public: bool isPalindrome(int x) { if(x < 0) return false; if(x < 10) return true;原创 2015-08-27 16:53:20 · 404 阅读 · 0 评论 -
leetcode--Add Digits
C++ LeetCode原创 2015-08-28 14:47:23 · 484 阅读 · 0 评论 -
leetcode--Remove Element
C++ LeetCode原创 2015-08-28 15:43:12 · 414 阅读 · 0 评论 -
remove all the same elements
remove elements原创 2015-08-21 14:26:14 · 478 阅读 · 0 评论 -
C++ string类的实现
C++ string 类主要函数的实现原创 2016-02-23 16:40:53 · 386 阅读 · 0 评论 -
二叉树前序、中序和后序遍历相互求法
假设已知一个二叉树,其前序遍历为1,2,4,7,3,5,6,8;中序遍历为4,7,2,1,5,3,8,6;后序遍历为7, 4, 2, 5, 8, 6, 3, 1。在已知前序遍历和中序遍历或者是中序遍历和后序遍历两者时,其二叉树顺序是确定的,即另一遍序方式是确定的。在求解过程中,首先需要确定根节点(前序遍历的第一个点为根节点,后序遍历最后一个点为根节点),然后再在中序遍历中寻找根节点,故而确...原创 2019-06-29 21:19:28 · 342 阅读 · 0 评论 -
二叉树前序、中序和后序遍历相互求法
二叉树 遍历原创 2016-04-05 16:32:26 · 528 阅读 · 0 评论