y*******d 发帖数: 1674 | 1 面试让写一个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. | z****e 发帖数: 54598 | | z****e 发帖数: 54598 | 3 for this requirement
it just ask u to imple a parser
which may need u to parse AND, OR, <, >, =, ( etc.
think of implementing calculator this assignment in the uni.
similar thing | y*******d 发帖数: 1674 | |
|