Search found 1 match

by Admiral
Thu Aug 08, 2002 2:17 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 108667

problem 101, why do I get wrong answer?

Array pre means the previous box of each box, if there's not a previous box then set as -1, the same as other arrays. Array first means the first box of each stack, and array position means the position of every box.
[c]#include <stdio.h>

void main(void)
{
short i,n,a,b,p;
short pre[25],next[25 ...

Go to advanced search