Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Kotlin code support for English Time Complexity section of the doc #1432

Closed
wants to merge 2 commits into from

Conversation

eyedol
Copy link

@eyedol eyedol commented Jul 15, 2024

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:

  • I have thoroughly reviewed the code, focusing on its formatting, comments, indentation, and file headers.
  • I have confirmed that the code execution outputs are consistent with those produced by the reference code (Python or Java).
  • 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.

@krahets
Copy link
Owner

krahets commented Jul 26, 2024

Thanks for the PR! Currently, we're not ready to translate other programming languages into English.

@krahets krahets closed this Jul 26, 2024
@eyedol
Copy link
Author

eyedol commented Jul 26, 2024

No problem. Thanks for letting me know.

@eyedol eyedol deleted the kotlin-support-en branch July 26, 2024 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants