Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Cool
I really enjoyed this Kata! Thank you!
C language: my code is running smoothly on the terminal, giving right results, but on kata, right on the second sample test I get the following error:
Test Crashed Caught unexpected signal: SIGSEGV (11). Invalid memory access.
Another interesting behaviour is that I passed 108 tests when I attempt, being 100/100 from "random tests" and 7/7 from "futher", and 1 sample.
I'm probably messing up with dynamic memory allocation. But since it works on terminal, I don't know what is it.
Updated Go Translation https://www.codewars.com/kumite/5e6da4bd3fcf600012e7d6e5?sel=6256551cea4e7f005779f740
I'm not sure if the solution is invalid or not, but after some manual computations, it shows that 6 of the larger basic tests are returning the wrong answer. All of the random tests pass.
132030240 should equal 4 years, 67 days, 3 hours, 48 minutes and 56 seconds
OCaml translation.
Please review and approve, thanks !
BigInt is node 10+ only
ReferenceError: BigInt is not defined
at formatDuration
at it
at begin
at it
at describe
at /runner/frameworks/javascript/cw-2.js:152:11
at Promise._execute
at Promise._resolveFromExecutor
at new Promise
at describe
at /home/codewarrior/index.js:40:5
at /home/codewarrior/index.js:51:5
at Object.handleError
Very cool kata, learnt a lot about string formatting; thanks.
I'm still in awe at one of the user submitted solutions, which is basically 600 lines of code of full exhaustive case checking!
sure, thanks
(deleted answer)
This comment is hidden because it contains spoiler information about the solution
i would suggest to try to reverse the way you get to seconds from a year
The description is clear about which time divisions must be used. You just need to READ it, not just curse read and protest without thinking twice.
Plese, add a notion to the task description that months are not required in the result: only years, days and minutes.
60 days != 2 months
Loading more items...