上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页
摘要: 1086 Tree Traversals Again (25分) An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that wh 阅读全文
posted @ 2020-06-19 21:39 Cruel_King 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 1080 Graduate Admission (30分) It is said that in 2011, there are about 100 graduate schools ready to proceed over 40,000 applications in Zhejiang Prov 阅读全文
posted @ 2020-06-15 23:22 Cruel_King 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 1078 Hashing (25分) The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of 阅读全文
posted @ 2020-06-14 23:35 Cruel_King 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1074 Reversing Linked List (25分) Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For ex 阅读全文
posted @ 2020-06-12 23:28 Cruel_King 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 1099 Build A Binary Search Tree (30分) A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left 阅读全文
posted @ 2020-06-11 22:50 Cruel_King 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 1068 Find More Coins (30分) Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a univer 阅读全文
posted @ 2020-06-07 23:54 Cruel_King 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 1064 Complete Binary Search Tree (30分) A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left 阅读全文
posted @ 2020-06-06 23:41 Cruel_King 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 1066 Root of AVL Tree (25分) An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node diff 阅读全文
posted @ 2020-06-05 21:49 Cruel_King 阅读(195) 评论(1) 推荐(0) 编辑
摘要: 1065 A+B and C (64bit) (20分) Given three integers A, B and C in [−], you are supposed to tell whether A+B>C. Input Specification: The first line of th 阅读全文
posted @ 2020-06-03 12:34 Cruel_King 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 1057 Stack (30分) Stack is one of the most fundamental data structures, which is based on the principle of Last In First Out (LIFO). The basic operatio 阅读全文
posted @ 2020-06-02 23:19 Cruel_King 阅读(181) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页