exercism / c

Exercism exercises in C.
https://exercism.org/tracks/c
MIT License
298 stars 181 forks source link

Rework gigasecond to be slightly more challenging #925

Closed glennj closed 1 year ago

glennj commented 1 year ago

I'm not terribly experienced in C. Have I implemented an OK way to handle strings without malloc/free?

Closes #924

glennj commented 1 year ago

Hmm I could be wrong but IIRC the intention of the gigasecond exercise is to be relatively simple. Introducing time.h In any significant way may add needless complexity and could lead to different results depending on platform.

@wolf99 how does this submission meet your concerns?

ryanplusplus commented 1 year ago

Can you bump up the difficulty for gigasecond in config.json?

glennj commented 1 year ago

I was totally Chesterton's Fencing with that construct_date function. Didn't understand why it's there, didn't complain about it ;)

wolf99 commented 1 year ago

Thanks for this PR @glennj !