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.
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
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
This comment is hidden because it contains spoiler information about the solution
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?