由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 请教个Perl的问题!!多谢啦!
相关主题
perl Question 请教算法题:两列找共同元素有O(n)的算法吗?
关于面试ABCmerge k个数组怎样的方法好?
Google电话面试题目Extension problem of finding intersection of two sorted array
一道老题问个微软面试题
也问一个算法题问个google面试题
问个面试题Random Array number, Find longest consecutive sequence
careercup上这道题我竟然没看懂哪里有讲k-way merge的?
find median for k sorted arrays求教一个onsite面试题目
相关话题的讨论汇总
话题: thing1话题: perl话题: thing2话题: what话题: my
进入JobHunting版参与讨论
1 (共1页)
b******e
发帖数: 432
1
What is the difference between the two following declarations?
my $thing1 = [ 1, 2, 3 ];
my @thing2 = ( 1, 2, 3 );
S**I
发帖数: 15689
2
前一个是array,后一个是list

What is the difference between the two following declarations?
my $thing1 = [ 1, 2, 3 ];
my @thing2 = ( 1, 2, 3 );

【在 b******e 的大作中提到】
: What is the difference between the two following declarations?
: my $thing1 = [ 1, 2, 3 ];
: my @thing2 = ( 1, 2, 3 );

b******e
发帖数: 432
3
The first one: $thing1 = the reference to the array (1,2,3)
The second one: @thins2 is the array (1,2,3)
1 (共1页)
进入JobHunting版参与讨论
相关主题
求教一个onsite面试题目也问一个算法题
divide array into two, sum of difference is min in O(N)问个面试题
刷题刷到没自信了careercup上这道题我竟然没看懂
a[i] + b[j] = c[k] 的题有靠谱的答案不?find median for k sorted arrays
perl Question 请教算法题:两列找共同元素有O(n)的算法吗?
关于面试ABCmerge k个数组怎样的方法好?
Google电话面试题目Extension problem of finding intersection of two sorted array
一道老题问个微软面试题
相关话题的讨论汇总
话题: thing1话题: perl话题: thing2话题: what话题: my