this post was submitted on 17 Aug 2023
8 points (100.0% liked)

Programming Challenges

234 readers
1 users here now

Welcome to the programming.dev challenge community!

Three challenges will be posted every week to complete

Easy challenges will give 1 point, medium will give 2, and hard will give 3. If you have the fastest time or use the least amount of characters you will get a bonus point (in ties everyone gets the bonus point)

Exact duplicate solutions are not allowed and will not give you any points. Submissions on a challenge will be open for a week.

A leaderboard will be posted every month showing the top people for that month

founded 1 year ago
MODERATORS
 

Ive created a js app that can be used to test solutions for the community. Certain ones people made for challenge #1 wont be able to be put through it since they accept user input through entering it while its running rather than command line arguments but ill be enforcing command line argument use going forward

Let me know if theres any issues you find with it. I tested with with javascript, python, and rust and seemed to be working great. There can be differences in runtime when you run the same thing multiple times so ill be taking the median of running it 50 times for the performance score in the challenge

you are viewing a single comment's thread
view the rest of the comments
[โ€“] Andy 1 points 1 year ago (1 children)

Thanks!

Regarding my second question, I'm thinking for some languages there's a performance hit each time the program/function/runtime is launched, and that it's more performant to handle all tests with a single invocation that loops through them all.

But I think, and am looking to confirm, that that form is not allowed for these challenges, so we should only have each solution take a single test case.

[โ€“] Ategon 1 points 1 year ago

I have it coded where it will check how long it takes for a basic program to launch and subtract that from the time

But yeah solutions should only take 1 test case at a time