c**y 发帖数: 73 | 1 Question 1) Convert a string to a long number without using the built in
functions.Describe what (if any) limitations
long str2Long(String s)
{
/* code goes here to convert a string to a long */
}
Question 2) Implement insert and delete in a tri-nary tree. A tri-nary tree
is much like a binary tree but with three child nodes for each parent
instead of two -- with the left node being values less than the parent, the
right node values greater than the parent, and the middle nodes values equal
to the parent.
For example, suppose I added the following nodes to the tree in this order:
5, 4, 9, 5, 7, 2, 2.
The resulting tree would look like this:
5
/ |
4 5 9
/ /
2 7
|
2 | l*********8 发帖数: 4642 | | j**********3 发帖数: 3211 | | j********l 发帖数: 325 | 4 发完online test给hr,最后hr发给hm,最后就被无语的拒了 | h**c 发帖数: 118 | | l*********r 发帖数: 136 | 6 一样的题目,一样的经历。。。
【在 j********l 的大作中提到】 : 发完online test给hr,最后hr发给hm,最后就被无语的拒了
| h**c 发帖数: 118 | |
|