y*******d 发帖数: 1674 | 1 【 以下文字转载自 Programming 讨论区 】
发信人: yxfabroad (生命终究难舍蓝蓝的白云天), 信区: Programming
标 题: 问java api的问题
发信站: BBS 未名空间站 (Wed Nov 18 23:53:21 2015, 美东)
面试让写一个API,后面有附加问题:
Consider how the API could support 3rd party applications which need to
perform some logic based on the structure and content of a filter in a type-
safe manner.
不知道应该从什么方面考虑这个问题。以前没有这方面的经验。谢谢啦
还有一个也是这个APi一部分:
Input is a combination of arbitrary complex filters. 比如:
name = "smith" AND age > 9 OR Not(city = "New York")
It asks for a string representation, including the ability to generate and
parse filters from the string representation. (you are not required to
implement the string parsing logic since this could take too long)
Hint: give an example of a tree data structure. |
|