Search found 5 matches

by asrajmane193
Wed Sep 09, 2015 3:16 pm
Forum: Volume 114 (11400-11499)
Topic: 11402 - Ahoy, Pirates!
Replies: 45
Views: 24532

Re: 11402 - Ahoy, Pirates!

Thanks leolleo, that worked. :)
by asrajmane193
Fri Jul 03, 2015 3:39 pm
Forum: Volume 100 (10000-10099)
Topic: 10074 - Take the Land
Replies: 21
Views: 7902

Re: 10074 - Take the Land

hello. i keep getting wrong answer. I tried many random testcases and compared my outputs with the ones on udebug. they are equal. my code is here - http://ideone.com/dOLTFy

I have applied 1D maximum sum on a matrix. For every window of rows I try to find the starting and ending column.

For ...
by asrajmane193
Wed May 27, 2015 8:38 pm
Forum: Volume 114 (11400-11499)
Topic: 11402 - Ahoy, Pirates!
Replies: 45
Views: 24532

Re: 11402 - Ahoy, Pirates!

Runtime error gone, but now TLE. :(

I was able to find out the offending statements causing the segmentation fault. Inside "propagate()" function the lines 57, 58, 62, 63, 67, 68 were the culprits - I had not put a condition to end the propagation at the leaf nodes.

Code that's giving TLE is here ...
by asrajmane193
Tue May 26, 2015 11:54 am
Forum: Volume 114 (11400-11499)
Topic: 11402 - Ahoy, Pirates!
Replies: 45
Views: 24532

Re: 11402 - Ahoy, Pirates!

I updated my code a little. Here's the updated IDEone. http://ideone.com/r09PKO
by asrajmane193
Tue May 26, 2015 11:08 am
Forum: Volume 114 (11400-11499)
Topic: 11402 - Ahoy, Pirates!
Replies: 45
Views: 24532

11402 - Ahoy, Pirates!

I am getting Runtime error for this code. Could someone please help me with that?

http://ideone.com/btRZKZ

Go to advanced search