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.
Very good kata. I had to challenge myself and I learned some new aspects of the language. Kudos!
I see a lot of comments stating that a simple brute force solution would do the job.
In Pascal it does not. It is required some sort of code optimization in order to avoid the timeout.
Nice kata.
This comment is hidden because it contains spoiler information about the solution
I tried resetting the kata and pressing the 'ATTEMPT' button. I am still getting the same error. Instead, the 'TEST' button works just fine.
CODE:
unit Kata;
interface
function Decomp(n: Int64): String;
implementation
function Decomp(n: Int64): String;
begin
// your code
Result := '';
end;
end.
LOG:
Free Pascal Compiler version 3.2.0 [2020/06/14] for x86_64
Copyright (c) 1993-2020 by Florian Klaempfl and others
KataTests.pas(52,3) Error: Type mismatch
KataTests.pas(94) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
I don't see any error in the tests.
I completed the kata. All the tests passes without errors.
When I attempt to send my solution, I get:
Free Pascal Compiler version 3.2.0 [2020/06/14] for x86_64
Copyright (c) 1993-2020 by Florian Klaempfl and others
KataTests.pas(52,3) Error: Type mismatch
KataTests.pas(94) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
Might there be some problems with the tests?