If this pull request (PR) is associated with coding or code transpilation, please attach the relevant console outputs to the PR and complete the following checklist:
[x] I have thoroughly reviewed the code, focusing on its formatting, comments, indentation, and file headers.
[x] I have confirmed that the code execution outputs are consistent with those produced by the reference code (Python or Java).
[x] The code is designed to be compatible on standard operating systems, including Windows, macOS, and Ubuntu.
Changes here are mostly code. Added Kotlin support to the English translation of Time Complexity doc. The code support is for both the code snippets in the en/docs/chapter_computational_complexity/time_complexity.md and the Kotlin code for time_complexity.
Console output of running: java -jar en/codes/kotlin/build/test.jar
Input data size n = 8
Number of constant complexity operations = 100000
Number of linear complexity operations = 8
Number of linear complexity operations (traversing the array) = 8
Number of quadratic order operations = 64
Number of quadratic order operations (bubble sort) = 84
Number of exponential complexity operations (implemented by loop) = 255
Number of exponential complexity operations (implemented by recursion) = 255
Number of logarithmic complexity operations (implemented by loop) = 3
Number of logarithmic complexity operations (implemented by recursion) = 3
Number of linear logarithmic complexity operations (implemented by recursion) = 32
Number of factorial complexity operations (implemented by recursion) = 40320
I'd appreciate a review and possible merge. Thank you.
Note: This is an initial PR to add Kotlin code support for the English translations. I'll add more as I progress with PR merges.
If this pull request (PR) is associated with coding or code transpilation, please attach the relevant console outputs to the PR and complete the following checklist:
Changes here are mostly code. Added Kotlin support to the English translation of Time Complexity doc. The code support is for both the code snippets in the en/docs/chapter_computational_complexity/time_complexity.md and the Kotlin code for time_complexity.
Console output of running:
java -jar en/codes/kotlin/build/test.jar
I'd appreciate a review and possible merge. Thank you.
Note: This is an initial PR to add Kotlin code support for the English translations. I'll add more as I progress with PR merges.