For a moment you scared me !!
Well yes the code works for the sample input fine....
Also notice that in the main method I am re-initializing the values of maxBlocks and the blockworld array. The '5' above is not presentable (I agree) but it is not used per se later on.
Thanks
Aniket
Search found 4 matches
- Thu Mar 16, 2006 3:18 pm
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 110438
- Sun Mar 12, 2006 10:49 pm
- Forum: Volume 1 (100-199)
- Topic: 101 - The Blocks Problem
- Replies: 635
- Views: 110438
101 Java WA
I have tried all the inputs on the board.
It is getting a WA after a few runs I guess since the time is .137
Attaching my code here....maybe it will help someone and inturn myself.
If anyone knows, where I am falling short, lemme know.
import java.io.IOException;
import java.util.StringTokenizer ...
It is getting a WA after a few runs I guess since the time is .137
Attaching my code here....maybe it will help someone and inturn myself.
If anyone knows, where I am falling short, lemme know.
import java.io.IOException;
import java.util.StringTokenizer ...
- Thu Mar 10, 2005 2:35 am
- Forum: Java
- Topic: Java Help General
- Replies: 4
- Views: 2053
Java General Help
Since it is mentioned that Java will work only with 1.1 or 1.2, I decided to make my program fully compatible with 1.1.8.
I got past compilation problems after that and after making the common changes...like program class has to be "Main" and cannot be public.
I noticed one thing that the output ...
I got past compilation problems after that and after making the common changes...like program class has to be "Main" and cannot be public.
I noticed one thing that the output ...
- Wed Mar 09, 2005 9:09 am
- Forum: Java
- Topic: Java Help General
- Replies: 4
- Views: 2053
Java Help General
I understand that currently only JDK 1.1 and 1.2 will work. And that some of the classes in these versions are restricted.
However, I wanted to know exactly which classes are restricted. I don't want to know why they are restricted :) ...just which ones.
It so happens that my programs compile ...
However, I wanted to know exactly which classes are restricted. I don't want to know why they are restricted :) ...just which ones.
It so happens that my programs compile ...