1043 Is It a Binary Search Tree (25 分) A Binary Search Tree (BST) is recursively define...
1043 Is It a Binary Search Tree (25 分) A Binary Search Tree (BST) is recursively define...
1042 Shuffling Machine (20 分) Shuffling is a procedure used to randomize a deck of play...
树的遍历问题探讨及总结 Create: 2018-10-09 17:34:07 1.知两序求两序 序指的是前序、中序、后序、层序。知道两序可以推出其它两序(除前、后序外)。在...
1048 Find Coins (25 分)(map以及STL的应用) Eva loves to collect coins from all over the univer...
1047 Student List for Course (25 分) Zhejiang University has 40,000 students and provide...
1046 Shortest Distance (20 分) The task is really simple: given N exits on a highway whi...
1052 Linked List Sorting (25 分) A linked list consists of a series of structures, which...
1051 Pop Sequence (25 分)(堆栈模拟) Given a stack which can keep M numbers at most. Push N n...
1055 The World's Richest (25 分) Forbes magazine publishes every year its list of billio...
1054 The Dominant Color (20 分) Behind the scenes in the computer's memory, color is alw...
1060 Are They Equal (25 分) If a machine can save only 3 significant digits, the float n...
1059 Prime Factors (25 分) Given any positive integer N, you are supposed to find all of...
1058 A+B in Hogwarts (20 分) If you are a fan of Harry Potter, you would know the world ...
1062 Talent and Virtue (25 分) About 900 years ago, a Chinese philosopher Sima Guang wro...
1063 Set Similarity (25 分) Given two sets of integers, the similarity of the sets is de...
1061 Dating (20 分) Sherlock Holmes received a note with some strange strings: Let's dat...
1067 Sort with Swap(0, i) (25 分) Given any permutation of the numbers {0, 1, 2,..., N−1...
1065 A+B and C (64bit) (20 分) Given three integers A, B and C in [−263 ,263], you ar...
1071 Speech Patterns (25 分) People often have a preference among synonyms of the same w...
1069 The Black Hole of Numbers (20 分) For any 4-digit integer except the ones with all ...