摘要: 1、插入排序插入排序(Insertion Sort)是一种简单直观的排序算法。它的工作原理是通过构建有序序列,对于未排序数据,在已排序序列中从后向前扫描,找到相应位置并插入。插入排序在实现上,通常采用in-place排序(即只需用到O(1)的额外空间的排序),因而在从后向前扫描过程中,需要反复把已排 阅读全文
posted @ 2017-08-08 22:08 郑 彪 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 题目: Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Each operand may be an integer or anoth 阅读全文
posted @ 2017-08-06 23:26 郑 彪 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the neares 阅读全文
posted @ 2017-08-06 22:45 郑 彪 阅读(1951) 评论(0) 推荐(0) 编辑