p*****o 发帖数: 1285 | 1 1. Print a matrix in spiral order from (0,0) to the center.
2. longest palindromic sub-string.
3. implement a wrapper class, Iterator >, to simulate the
interface of Iterator.
4. validate a binary search tree.
5. design a traffic light system.
6. 2-d sorted matrix, count negative numbers.
7. merge two sorted linked lists. | z****h 发帖数: 164 | | b******v 发帖数: 1493 | 3 traffic light system该怎么design?
★ 发自iPhone App: ChineseWeb - 中文网站浏览器
【在 p*****o 的大作中提到】 : 1. Print a matrix in spiral order from (0,0) to the center. : 2. longest palindromic sub-string. : 3. implement a wrapper class, Iterator >, to simulate the : interface of Iterator. : 4. validate a binary search tree. : 5. design a traffic light system. : 6. 2-d sorted matrix, count negative numbers. : 7. merge two sorted linked lists.
| q***y 发帖数: 236 | 4 多谢分享。
3. implement a wrapper class, Iterator >, to simulate the
interface of Iterator.
这题能在解释下吗? | p*****o 发帖数: 1285 | 5 Iterator class provides two basic methods,
bool has_next();
T& next();
要求写一个wrapper class for Iterator>, 实现和Iterator相同的界
面,也就是实现上述两个方法。
【在 q***y 的大作中提到】 : 多谢分享。 : 3. implement a wrapper class, Iterator >, to simulate the : interface of Iterator. : 这题能在解释下吗?
|
|