Search found 4 matches

by DavidWang
Wed Oct 12, 2005 3:43 am
Forum: Algorithms
Topic: Help needed!A problem about N-Dimentional Array Lookup
Replies: 12
Views: 2689

little joey, thanks for your help.
I used your code to test the samples you have verified, but it gave wrong answers. I don't know why. Furthermore, I guess maybe there is something wrong with function "get_element". I have been thinking on.
by DavidWang
Mon Oct 10, 2005 6:10 am
Forum: Algorithms
Topic: Help needed!A problem about N-Dimentional Array Lookup
Replies: 12
Views: 2689

My code handled that correctly.
6

{}
0

{{},{},{}}
1 0

{{},{1,2,3},{}}
1 1

{7,6,5,4,3,2,1}
4

{{{{{1}}}}}
0 0 0 0 0

{{{{{{{{1,2,3}}},{{{}}},{{{4},{5}},{{6}}}}}}}}
0 0 0 0 2 0 1 0

Gives Case 1:
Invalid query!

Case 2:
Invalid query!

Case 3:
2

Case 4:
3

Case 5:
1

Case 6:
5

Maybe I ...
by DavidWang
Sun Oct 09, 2005 6:16 pm
Forum: Algorithms
Topic: Help needed!A problem about N-Dimentional Array Lookup
Replies: 12
Views: 2689

sunmoonstar_love, the URL you provide has a problem alike. However, it is not helpful. What I need is a wonderful idea or the code.
by DavidWang
Sun Oct 09, 2005 9:02 am
Forum: Algorithms
Topic: Help needed!A problem about N-Dimentional Array Lookup
Replies: 12
Views: 2689

Help needed!A problem about N-Dimentional Array Lookup

I have deliberated upon this problem for long, which seems very easy, but in vain. So I come here for some help. Please read it throughout though it is somewhat copious.

All Description is as follows:
An N-dimensional array contains zero or more (N-1)-dimensional arrays, each of which can have ...

Go to advanced search