
pat 练习
文章平均质量分 80
LifeIsStudy
爱好编程,正在学习算法,python,c/c++等~~~
展开
-
pat 03-树2 List Leaves(mooc 陈越、何钦铭-数据结构)
Given a tree, you are supposed to list all the leaves in the order of top down, and left to right.Input Specification:Each input file contains one test case. For each case, the first line gives原创 2016-09-19 20:48:44 · 1406 阅读 · 0 评论 -
Tree Traversals Again(mooc 浙大算法课)
03-树3 Tree Traversals Again (25分)An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tree (with the keys numbere原创 2016-09-22 09:26:50 · 3805 阅读 · 0 评论 -
Complete Binary Search Tree(mooc)
04-树6 Complete Binary Search Tree (30分)A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with原创 2016-09-27 20:33:20 · 390 阅读 · 0 评论