Search found 23 matches
- Thu Sep 02, 2004 6:48 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10035 - Primary Arithmetic
- Replies: 328
- Views: 94223
java rules
I have solved it in java. I havent submitted yet. Can some one post the special cases I have to check for? My code is around 104 lines. I am just reading everything as a String and then converting back to integer and then again to string. For a moment I felt this problem as text processing problem. ...
- Thu Sep 02, 2004 6:47 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10035 - Primary Arithmetic
- Replies: 328
- Views: 94223
java rules
I have solved it in java. I havent submitted yet. Can some one post the special cases I have to check for? My code is around 104 lines. I am just reading everything as a String and then converting back to integer and then again to string. For a moment I felt this problem as text processing problem. ...
- Tue May 11, 2004 4:52 am
- Forum: Volume 101 (10100-10199)
- Topic: 10139 - Factovisors
- Replies: 80
- Views: 38738
o o!
I am sorry for the confusion. I was wrong. [java]Test java[/java][/java]
- Fri May 07, 2004 10:37 pm
- Forum: Off topic (General chit-chat)
- Topic: What do you like to eat?
- Replies: 20
- Views: 69876
dhal chawal
I like to eat cobras:)
Just foolin around.![:wink:](./images/smilies/icon_wink.gif)
Just foolin around.
![:wink:](./images/smilies/icon_wink.gif)
- Fri May 07, 2004 9:59 pm
- Forum: Java
- Topic: speed of java and c++
- Replies: 20
- Views: 11578
java to native code converters
Are there any good converters? I searched extensively on net but found some links and most of them wont work. Does GCJ allow us to do that?
Thanks.![:wink:](./images/smilies/icon_wink.gif)
Thanks.
![:wink:](./images/smilies/icon_wink.gif)
- Fri May 07, 2004 9:20 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10139 - Factovisors
- Replies: 80
- Views: 38738
10139-Factovisors using BigInteger
Here is my code for this problem: import java.io.*; import java.util.*; import java.math.*; class Main { public static void main(String []args) { Main code=new Main(); code.execute(); } void execute() { String s; StringTokenizer st; BigInteger i, j; while ((s = Main.readLn(255)) != null) { st = new ...
- Fri May 07, 2004 8:16 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10139 - Factovisors
- Replies: 80
- Views: 38738
cannot handle large values.
I tested your program for some huge fact values and it does not work 1009 1000 1000 divides 1009! 1000 1009 1009 does not divide 1000! >>1073741824 1000000 >>1000000 divides 1073741824! Actualy it should be 1000000 does not divide 1073741824! which is very obvious. Even I am having some problems han...
- Wed May 05, 2004 6:07 am
- Forum: Volume 6 (600-699)
- Topic: 640 - Self Numbers
- Replies: 47
- Views: 23952
I knew it
I knew that I was getting appropriate output. But how do I print out all self numbers less than 1000000. Do I have to use a different recursive relation?Thanks.
- Wed May 05, 2004 5:58 am
- Forum: Volume 6 (600-699)
- Topic: 640 - Self Numbers
- Replies: 47
- Views: 23952
I knew it
I knew that I was getting appropriate output. But how do I print out all self numbers less than 1000000. Do I have to use a different recursive relation?Thanks.
- Tue May 04, 2004 10:32 pm
- Forum: Volume 6 (600-699)
- Topic: 640 - Self Numbers
- Replies: 47
- Views: 23952
Volume 6 Problem640
In generating self numbers of base 10 I am using the recursive relation:
Initial condition is g(1)=9
My program prints 9 and then directly jumps to 97. What might be wrong with my program? Please reply.![:(](./images/smilies/icon_frown.gif)
Code: Select all
g(n)=8*10^(n-1)+g(n-1)+8;
My program prints 9 and then directly jumps to 97. What might be wrong with my program? Please reply.
![:(](./images/smilies/icon_frown.gif)
- Mon May 03, 2004 6:45 am
- Forum: C
- Topic: Hash Tabel linked lists in C
- Replies: 3
- Views: 3093
never mind
I fixed it. Thanks for your help though. ![:D](./images/smilies/icon_biggrin.gif)
![:D](./images/smilies/icon_biggrin.gif)
- Sun May 02, 2004 1:58 am
- Forum: C
- Topic: Hash Tabel linked lists in C
- Replies: 3
- Views: 3093
oops
I forgot to mention that:
[/b]
Code: Select all
variable [b]distArray[/b] stores hashTable elements which are ints
- Sun May 02, 2004 1:51 am
- Forum: C
- Topic: Hash Tabel linked lists in C
- Replies: 3
- Views: 3093
Hash Tabel linked lists in C
I am trying to implement a hash table where each hashtable element is a pointer to a linked list of strings. Here is what my code looks like cod removed......... I am getting lot of errors and started learning c just few days ago . I get this error: passing arg 2 of `insertSchool' makes integer from...
- Fri Apr 30, 2004 6:35 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10252 - Common Permutation
- Replies: 150
- Views: 68639
run time
Actualy i dont know what exactly that means. Is it the time my program stays in physical memory while it is executed? The runtime for my solution was 8.45 sec. Too bad. How do I become efficient? Can someone shed some light on this. Thanks in advance.
- Fri Apr 30, 2004 6:33 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10252 - Common Permutation
- Replies: 150
- Views: 68639
thanks a lot
Yeha you pointed out the root error. Thanks a lot. It got accepted. Now I have gained some confidence.
![:lol:](./images/smilies/icon_lol.gif)
Code: Select all
Perseverence is everything