Ad
  • Custom User Avatar

    Very good kata. I had to challenge myself and I learned some new aspects of the language. Kudos!

  • Custom User Avatar

    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.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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

  • Default User Avatar

    I don't see any error in the tests.

  • Custom User Avatar

    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?