https://github.com/ashtanko/dsa-kotlin
📚 Collection of various Data Structures and Algorithms, implemented in Kotlin for educational purposes.
https://github.com/ashtanko/dsa-kotlin
algorithm-challenges algorithms algorithms-and-data-structures algorithms-datastructures computer-science datastructures detekt interview interview-practice kotlin learn-to-code sort sorting-algorithms
Last synced: 13 days ago
JSON representation
📚 Collection of various Data Structures and Algorithms, implemented in Kotlin for educational purposes.
- Host: GitHub
- URL: https://github.com/ashtanko/dsa-kotlin
- Owner: ashtanko
- License: mit
- Created: 2022-07-20T07:15:42.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-11T16:01:03.000Z (13 days ago)
- Last Synced: 2025-04-12T02:35:12.227Z (13 days ago)
- Topics: algorithm-challenges, algorithms, algorithms-and-data-structures, algorithms-datastructures, computer-science, datastructures, detekt, interview, interview-practice, kotlin, learn-to-code, sort, sorting-algorithms
- Language: Kotlin
- Homepage: https://shtanko.dev
- Size: 678 KB
- Stars: 34
- Watchers: 1
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Data structures and algorithms in pure Kotlin
A repository that organizes various data structures, algorithms, and solutions to problems in Kotlin in a structured format
## Overview
The repository is a collection of open-source implementations of a variety of algorithms implemented in Kotlin and
licensed under MIT License.
The implementations and their associated documentations are meant to provide a learning resource for educators and
students.
Hence, one may find more than one implementation for the same objective but using different algorithm strategies and
optimizations.## Features
* The repository provides implementations of various algorithms in one of the most fundamental general purpose languages
- [Kotlin](https://kotlinlang.org/)).
* Well documented source code with detailed explanations provide a valuable resource for educators and students alike.
* Source codes are compiled and tested
* Self-checks within programs ensure correct implementations with confidence.
* Modular implementations and OpenSource licensing enable the functions to be utilized conveniently in other
applications.
* Makefile
* JUnit 5
* Code checks (detekt, ktlint, spotless)
* CI
# detekt## Metrics
* 279 number of properties
* 239 number of functions
* 144 number of classes
* 10 number of packages
* 89 number of kt files
## Complexity Report
* 8,000 lines of code (loc)
* 3,881 source lines of code (sloc)
* 3,009 logical lines of code (lloc)
* 3,531 comment lines of code (cloc)
* 440 cyclomatic complexity (mcc)
* 219 cognitive complexity
* 0 number of total code smells
* 90% comment source ratio
* 146 mcc per 1,000 lloc
* 0 code smells per 1,000 lloc
## Findings (0)
generated with [detekt version 1.23.8](https://detekt.dev/) on 2025-03-04 20:50:16 UTC