由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 一个c++ 题目
相关主题
array contains two integer that sum up to 7[Algo] k numbers in array of n numbers sum to T
请教一个问题,发两个包子。[emc/greenplum面试]senior engineer
Extension problem of finding intersection of two sorted array问求array中3个数和最接近k的解法
BB试题:如何创建2D array of String?今天计划做20题
Interview Question在电脑上直接写程序
问个Array Puzzle题彭博 面试题
array of pointers to functionsreverse an array
Facebook Phone interviewAmazon电面(经),也求个祝福。。
相关话题的讨论汇总
话题: c++话题: accessed话题: pointer话题: return
进入JobHunting版参与讨论
1 (共1页)
w*******n
发帖数: 773
1
A 2 dimensional array 5 by 10?
write a c++ function to return a pointer that can be accessed by both
a[i][j] and a[5*i+j]
there is problem in career cup similar, but not same.
J********a
发帖数: 5208
2
what's the input? basically
for (i=0;i a[5*i] = (void *)& a[5*i+1];

【在 w*******n 的大作中提到】
: A 2 dimensional array 5 by 10?
: write a c++ function to return a pointer that can be accessed by both
: a[i][j] and a[5*i+j]
: there is problem in career cup similar, but not same.

j**w
发帖数: 382
3
int *foo()
{
return new int[5*10];
}
j********x
发帖数: 2330
4
要保证两者等价似乎是不行的。。。
1 (共1页)
进入JobHunting版参与讨论
相关主题
Amazon电面(经),也求个祝福。。Interview Question
这个题目的比较好的方法是什么?问个Array Puzzle题
google 2nd onsite?array of pointers to functions
问个复杂度的初级问题Facebook Phone interview
array contains two integer that sum up to 7[Algo] k numbers in array of n numbers sum to T
请教一个问题,发两个包子。[emc/greenplum面试]senior engineer
Extension problem of finding intersection of two sorted array问求array中3个数和最接近k的解法
BB试题:如何创建2D array of String?今天计划做20题
相关话题的讨论汇总
话题: c++话题: accessed话题: pointer话题: return