Coding Challenge 2

The Partridge Family were neither partridges nor a family. Discuss.
User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Coding Challenge 2

Post by chili » September 16th, 2017, 2:53 pm

Here is the download for the 2nd coding challenge. PM me when you think you have the correct answer. Your PM must include 1) the answer and 2) your zipped solution. Submission deadline is Tuesday, September 19th, 12 AM Tokyo time.

Ask any clarification questions you like on this thread. This post will be updated if any additional information / changes occur.

Video link here: https://youtu.be/0TSkrNhz4lA

NOTES:

When I test your code, I will pass it a pre-loaded string, so that file access time is not a factor in the benchmark. This may require some minor modification of your code, which I will undertake.

The numbers used to test programs will be 10000 digits or less.

There has already been a correct submission! You can still submit, but remember, the entries will now definitely be ranked by performance.
Attachments
number.zip
(3.55 KiB) Downloaded 371 times
Chili

User avatar
Yumtard
Posts: 575
Joined: January 19th, 2017, 10:28 pm
Location: Idiot from northern Europe

Re: Coding Challenge 2

Post by Yumtard » September 16th, 2017, 7:37 pm

god damn you chili. I made it work until I noticed the part about 7000 digits :D

User avatar
Yumtard
Posts: 575
Joined: January 19th, 2017, 10:28 pm
Location: Idiot from northern Europe

Re: Coding Challenge 2

Post by Yumtard » September 16th, 2017, 10:21 pm

My code basically works. But is there's a price for the least performant code?

User avatar
MyK_00L
Posts: 19
Joined: June 21st, 2016, 10:44 am

Re: Coding Challenge 2

Post by MyK_00L » September 16th, 2017, 11:39 pm

I did try to submit a solution, but it sais "zip extension not allowed" whenever i try to upload my zipped solution... I tried with other extentions too...

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: Coding Challenge 2

Post by albinopapa » September 17th, 2017, 12:33 am

Unless he changes something, I've never been able to PM an attachment of any type.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Coding Challenge 2

Post by chili » September 17th, 2017, 2:45 am

MyK_00L wrote:I did try to submit a solution, but it sais "zip extension not allowed" whenever i try to upload my zipped solution... I tried with other extentions too...
Yeah, the board was setup not to allow that stuff by default for some reason. I did some digging and figured out how to enable it though (wasn't easy :lol:). You should now be able to attach and post.
Chili

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Coding Challenge 2

Post by chili » September 17th, 2017, 2:48 am

Yumtard wrote:My code basically works. But is there's a price for the least performant code?
The price is you lose :lol:
Chili

User avatar
Fonduee
Posts: 3
Joined: August 30th, 2017, 6:21 pm

Re: Coding Challenge 2

Post by Fonduee » September 17th, 2017, 12:51 pm

Hi, guys, can you reveal your execution times, i want to compare with mine xD

User avatar
Chrajdal
Posts: 22
Joined: December 15th, 2012, 2:18 pm

Re: Coding Challenge 2

Post by Chrajdal » September 17th, 2017, 12:55 pm

Fonduee wrote:Hi, guys, can you reveal your execution times, i want to compare with mine xD
You first! :D

User avatar
Fonduee
Posts: 3
Joined: August 30th, 2017, 6:21 pm

Re: Coding Challenge 2

Post by Fonduee » September 17th, 2017, 1:05 pm

Chrajdal wrote:
Fonduee wrote:Hi, guys, can you reveal your execution times, i want to compare with mine xD
You first! :D
:lol:, about 16-20 ms, for the case my code works correrectly.

Post Reply