由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - Python: What does this mean?
相关主题
python没有first class function吧?Interview question
reverse LL recursively求助一个数据结构的求时间复杂度问题
[合集] 问个递归的问题python自定义函数中变量的scope 问题求教
recurvion真的很难懂~~请大虾验证!
树的前序遍历How to implement "reverse a singly linked list" recursively
python 问题,急,在线等。谁给一个recursive的string permutation的c code吧
Comparison Re: 组合的枚举算法?What happens when recursion functions are declared inline?
这道题有什么好思路?Exporting pattern rules in recursive make
相关话题的讨论汇总
话题: sum话题: list话题: does话题: what话题: python
进入Programming版参与讨论
1 (共1页)
c**********e
发帖数: 2007
1
Recursive List Sum. Design a function that accepts a list of numbers as an
argument. The function should recursively calculate the sum of all the
numbers in the list and return that value.
This is from a homework assignment.
Does it mean sum(x1,x2,...,xn) with n unknown, or sum(list1)?
X****r
发帖数: 3557
2
The latter.

【在 c**********e 的大作中提到】
: Recursive List Sum. Design a function that accepts a list of numbers as an
: argument. The function should recursively calculate the sum of all the
: numbers in the list and return that value.
: This is from a homework assignment.
: Does it mean sum(x1,x2,...,xn) with n unknown, or sum(list1)?

A**u
发帖数: 2458
3
hehe...
iterator
l*******s
发帖数: 1258
4
the latter, but not iterator
l********a
发帖数: 1154
5
reduce() ?
1 (共1页)
进入Programming版参与讨论
相关主题
Exporting pattern rules in recursive make树的前序遍历
an interview questionpython 问题,急,在线等。
请教一个自动下载网页链接的问题Comparison Re: 组合的枚举算法?
这里有人用 Erlang 吗?这道题有什么好思路?
python没有first class function吧?Interview question
reverse LL recursively求助一个数据结构的求时间复杂度问题
[合集] 问个递归的问题python自定义函数中变量的scope 问题求教
recurvion真的很难懂~~请大虾验证!
相关话题的讨论汇总
话题: sum话题: list话题: does话题: what话题: python