Search found 23 matches

by koodeGuru
Thu Sep 02, 2004 6:48 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 57705

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. ...
by koodeGuru
Thu Sep 02, 2004 6:47 pm
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 57705

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. ...
by koodeGuru
Tue May 11, 2004 4:52 am
Forum: Volume 101 (10100-10199)
Topic: 10139 - Factovisors
Replies: 80
Views: 26873

o o!

I am sorry for the confusion. I was wrong. [java]Test java[/java][/java]
by koodeGuru
Fri May 07, 2004 10:37 pm
Forum: Off topic (General chit-chat)
Topic: What do you like to eat?
Replies: 20
Views: 66408

dhal chawal

I like to eat cobras:)
Just foolin around. :wink:
by koodeGuru
Fri May 07, 2004 9:59 pm
Forum: Java
Topic: speed of java and c++
Replies: 20
Views: 9057

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:
by koodeGuru
Fri May 07, 2004 9:20 pm
Forum: Volume 101 (10100-10199)
Topic: 10139 - Factovisors
Replies: 80
Views: 26873

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 ...
by koodeGuru
Fri May 07, 2004 8:16 pm
Forum: Volume 101 (10100-10199)
Topic: 10139 - Factovisors
Replies: 80
Views: 26873

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...
by koodeGuru
Wed May 05, 2004 6:07 am
Forum: Volume 6 (600-699)
Topic: 640 - Self Numbers
Replies: 47
Views: 18183

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.
by koodeGuru
Wed May 05, 2004 5:58 am
Forum: Volume 6 (600-699)
Topic: 640 - Self Numbers
Replies: 47
Views: 18183

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.
by koodeGuru
Tue May 04, 2004 10:32 pm
Forum: Volume 6 (600-699)
Topic: 640 - Self Numbers
Replies: 47
Views: 18183

Volume 6 Problem640

In generating self numbers of base 10 I am using the recursive relation:

Code: Select all

g(n)=8*10^(n-1)+g(n-1)+8;
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. :(
by koodeGuru
Mon May 03, 2004 6:45 am
Forum: C
Topic: Hash Tabel linked lists in C
Replies: 3
Views: 2141

never mind

I fixed it. Thanks for your help though. :D
by koodeGuru
Sun May 02, 2004 1:58 am
Forum: C
Topic: Hash Tabel linked lists in C
Replies: 3
Views: 2141

oops

I forgot to mention that:

Code: Select all

variable [b]distArray[/b] stores hashTable elements which are ints
[/b]
by koodeGuru
Sun May 02, 2004 1:51 am
Forum: C
Topic: Hash Tabel linked lists in C
Replies: 3
Views: 2141

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...
by koodeGuru
Fri Apr 30, 2004 6:35 pm
Forum: Volume 102 (10200-10299)
Topic: 10252 - Common Permutation
Replies: 150
Views: 51773

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.
by koodeGuru
Fri Apr 30, 2004 6:33 pm
Forum: Volume 102 (10200-10299)
Topic: 10252 - Common Permutation
Replies: 150
Views: 51773

thanks a lot

Yeha you pointed out the root error. Thanks a lot. It got accepted. Now I have gained some confidence. :lol:

Code: Select all

Perseverence is everything

Go to advanced search