摘要:
ique_ptr is what you need, since it makes Settings the only (unique) owner of the pointed object, and the only object which is responsible for its des 阅读全文
摘要:
Given an directed graph, a topological order of the graph nodes is defined as follow:
For each directed edge A B in graph, A must before B in the ord... 阅读全文
摘要:
Given a root of Binary Search Tree with unique value for each node. Remove the node with given value. If there is no such a node with given value in ... 阅读全文
摘要:
Design an algorithm and write code to serialize and deserialize a binary tree. Writing the tree to a file is called 'serialization' and reading back ... 阅读全文
摘要:
Given two values k1 and k2 (where k1 < k2) and a root pointer to a Binary Search Tree. Find all the keys of tree in range k1 to k2. i.e. print all x ... 阅读全文
摘要:
Given an array of integers, the majority number is the number that occurs more than 1/3 of the size of the array.
Find it.
Have you met this question... 阅读全文