这是一个递归的定义,你怎么知道你的父母,至少其中一个是满足天生的美国公民,这个定义的呢?
How do you know that your parents, at least one of your parents satisfies the definition?
递归允许在域的更高层定义策略,然后将它们强制到内部所有组件实现和交互。
Recursion allows defining policies higher up in a domain and enforce them on all the component implementations and interactions within.
注意,与我们的递归程序非常类似,链表的定义也包括一个基线条件 —— 在这里是 NULL 指针。
Notice how like our recursive programs, the definition of a linked list also contains a base case -- in this case, the NULL pointer.
How do you know that your parents, at least one of your parents satisfies the definition? Well I've reduced the problem from am I a natural born US citizen to is one of my parents a natural born US citizen?
这是一个递归的定义,你怎么知道你的父母,至少其中一个是满足天生的美国公民,这个定义的呢?,我已经把我是一个天生的美国公民这个问题?
It's actually a wonderful recursive definition.
这就是一个绝妙的递归定义。
Wonderful recursive definition.
很漂亮的递归定义。
应用推荐